Compare commits

...

19 commits

Author SHA1 Message Date
e1fd6a81af
Ensure consistent artifact naming scheme
Some checks failed
build-and-test / build (pull_request) Successful in 1m35s
build-and-test / generate-javadoc (pull_request) Has been cancelled
build-and-test / test (pull_request) Has been cancelled
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 2024-08-18 17:52:07 +02:00
535a290e6f
Add generate-javadoc job 2024-08-18 17:47:55 +02:00
7bc23e43f5
Fix library and source jar upload 2024-08-18 17:30:15 +02:00
294137603f
Add test job, update build job 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 2024-08-18 16:50:25 +02:00
479c71f329
OH SORRY it's gradlew 2024-08-18 14:41:18 +02:00
77fd061334
Add git package 2024-08-18 14:39:30 +02:00
50862c38d7
dum 2024-08-18 14:37:37 +02:00
92df303779
Add node package for actions 2024-08-18 14:35:55 +02:00
54f582eb72
Revert "Change runs-on"
This reverts commit 2d9dccedca.
2024-08-18 14:17:13 +02:00
34c4e86e2b
Rename artifact jobs 2024-08-18 14:16:23 +02:00
f2aef64ab0
Add set -x 2024-08-18 14:11:30 +02:00
bc461b25e3
Fix wrong pacman.conf location 2024-08-18 14:11:01 +02:00
2d9dccedca
Change runs-on 2024-08-18 14:08:04 +02:00
039f18774a
Does this work? 2024-08-18 14:06:25 +02:00

View file

@ -0,0 +1,71 @@
name: build-and-test
on:
- pull_request
- push
jobs:
build:
runs-on: docker
container:
image: git.staropensource.de/staropensource/actions-docker:java
steps:
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@v4
- name: Compile
run: ./gradlew --no-daemon jar javadocJar sourceJar
- name: Upload library JARs
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with:
name: jars-libraries
path: |
**/build/libs/*.jar
!**/build/libs/*-javadoc.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: 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: jars-sources
path: |
**/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