forked from StarOpenSource/Engine
This commit is contained in:
parent
99e0f77fd1
commit
039f18774a
1 changed files with 47 additions and 0 deletions
47
.forgejo/workflows/build-and-test.yml
Normal file
47
.forgejo/workflows/build-and-test.yml
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
name: build-and-test
|
||||||
|
|
||||||
|
on:
|
||||||
|
- pull_request
|
||||||
|
- push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: archlinux:base-devel
|
||||||
|
steps:
|
||||||
|
- name: Setup system
|
||||||
|
run: |
|
||||||
|
pacman-key --init
|
||||||
|
pacman-key --populate
|
||||||
|
sed 's/\#ParallelDownloads = 5/ParallelDownloads = 15/g' -i /etc/pacman/pacman.conf
|
||||||
|
pacman -Syu --noconfirm
|
||||||
|
- name: Install latest OpenJDK release
|
||||||
|
run: pacman -S --noconfirm jdk-openjdk
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
- name: Compile
|
||||||
|
run: gradle build
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: library-jars
|
||||||
|
path: |
|
||||||
|
**/build/libs/*.jar
|
||||||
|
!**/build/libs/*-javadoc.jar
|
||||||
|
!**/build/libs/*-source.jar
|
||||||
|
if-no-files-found: error
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: apidoc-jars
|
||||||
|
path: |
|
||||||
|
**/build/libs/*-javadoc.jar
|
||||||
|
if-no-files-found: error
|
||||||
|
- name: Upload artifacts
|
||||||
|
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: source-jars
|
||||||
|
path: |
|
||||||
|
**/build/libs/*-source.jar
|
||||||
|
if-no-files-found: error
|
Loading…
Reference in a new issue