forked from StarOpenSource/Engine
Compare commits
10 commits
77fd061334
...
e1fd6a81af
Author | SHA1 | Date | |
---|---|---|---|
e1fd6a81af | |||
ccb107ee80 | |||
c2e4a5c9e5 | |||
535a290e6f | |||
7bc23e43f5 | |||
294137603f | |||
fbbf7094c7 | |||
c8cf0d7437 | |||
a98cc53b41 | |||
479c71f329 |
1 changed files with 40 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
|||
#name: build-and-test
|
||||
name: build-and-test
|
||||
|
||||
on:
|
||||
- pull_request
|
||||
|
@ -8,41 +8,64 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: archlinux:base-devel
|
||||
image: git.staropensource.de/staropensource/actions-docker:java
|
||||
steps:
|
||||
- name: Setup system
|
||||
run: |
|
||||
set -x
|
||||
pacman-key --init
|
||||
pacman-key --populate
|
||||
sed 's/\#ParallelDownloads = 5/ParallelDownloads = 15/g' -i /etc/pacman.conf
|
||||
pacman -Syu --noconfirm nodejs git
|
||||
- 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
|
||||
run: ./gradlew --no-daemon jar javadocJar sourceJar
|
||||
- name: Upload library JARs
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: library-jars
|
||||
name: jars-libraries
|
||||
path: |
|
||||
**/build/libs/*.jar
|
||||
!**/build/libs/*-javadoc.jar
|
||||
!**/build/libs/*-source.jar
|
||||
!**/build/libs/*-sources.jar
|
||||
if-no-files-found: error
|
||||
- name: Upload API documentation JARs
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: apidoc-jars
|
||||
name: jars-apidocs
|
||||
path: |
|
||||
**/build/libs/*-javadoc.jar
|
||||
if-no-files-found: error
|
||||
- name: Upload source JARs
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: source-jars
|
||||
name: jars-sources
|
||||
path: |
|
||||
**/build/libs/*-source.jar
|
||||
**/build/libs/*-sources.jar
|
||||
if-no-files-found: error
|
||||
generate-javadoc:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.staropensource.de/staropensource/actions-docker:java
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Generate javadoc
|
||||
run: ./gradlew --no-daemon javadoc javadocAll
|
||||
- name: Upload separate javadoc
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: javadoc-separate
|
||||
path: |
|
||||
**/build/docs/javadoc/*
|
||||
if-no-files-found: error
|
||||
- name: Upload combined javadoc
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: javadoc-combined
|
||||
path: |
|
||||
build/docs/javadoc/*
|
||||
if-no-files-found: error
|
||||
test:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: git.staropensource.de/staropensource/actions-docker:java
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://code.forgejo.org/actions/checkout@v4
|
||||
- name: Run tests
|
||||
run: ./gradlew --no-daemon test
|
||||
|
|
Loading…
Reference in a new issue