Compare commits

...

10 commits

Author SHA1 Message Date
e1fd6a81af
Ensure consistent artifact naming scheme
All checks were successful
build-and-test / test (push) Successful in 1m53s
build-and-test / build (push) Successful in 2m9s
build-and-test / generate-javadoc (push) Successful in 2m51s
2024-08-18 18:09:45 +02:00
ccb107ee80
[no ci] Rename step 2024-08-18 17:55:57 +02:00
c2e4a5c9e5
Fix javadoc-combined upload step
All checks were successful
build-and-test / test (push) Successful in 1m37s
build-and-test / build (push) Successful in 1m39s
build-and-test / generate-javadoc (push) Successful in 4m49s
2024-08-18 17:52:07 +02:00
535a290e6f
Add generate-javadoc job
Some checks failed
build-and-test / test (push) Successful in 1m46s
build-and-test / build (push) Successful in 1m55s
build-and-test / generate-javadoc (push) Failing after 2m1s
2024-08-18 17:47:55 +02:00
7bc23e43f5
Fix library and source jar upload
All checks were successful
build-and-test / build (push) Successful in 4m56s
build-and-test / test (push) Successful in 3m20s
2024-08-18 17:30:15 +02:00
294137603f
Add test job, update build job
Some checks failed
build-and-test / build (push) Failing after 7m20s
build-and-test / test (push) Successful in 4m28s
2024-08-18 17:01:49 +02:00
fbbf7094c7
Switch to java flavour 2024-08-18 17:01:28 +02:00
c8cf0d7437
[no ci] Use one-time daemon 2024-08-18 16:51:38 +02:00
a98cc53b41
Migrate to actions-docker
Some checks failed
/ build (push) Has been cancelled
2024-08-18 16:50:25 +02:00
479c71f329
OH SORRY it's gradlew
Some checks failed
/ build (push) Failing after 7m36s
2024-08-18 14:41:18 +02:00

View file

@ -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