Engine/.forgejo/workflows/build-and-test.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

2024-08-18 16:51:38 +02:00
name: build-and-test
2024-08-18 14:06:25 +02:00
on:
- pull_request
- push
jobs:
build:
runs-on: docker
2024-08-18 14:06:25 +02:00
container:
2024-08-18 16:50:25 +02:00
image: git.staropensource.de/staropensource/actions-docker:latest
2024-08-18 14:06:25 +02:00
steps:
- name: Install latest OpenJDK release
run: pacman -S --noconfirm jdk-openjdk
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@v4
- name: Compile
2024-08-18 16:51:38 +02:00
run: ./gradlew --no-daemon build
2024-08-18 14:16:23 +02:00
- name: Upload library JARs
2024-08-18 14:06:25 +02:00
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
2024-08-18 14:16:23 +02:00
- name: Upload API documentation JARs
2024-08-18 14:06:25 +02:00
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with:
name: apidoc-jars
path: |
**/build/libs/*-javadoc.jar
if-no-files-found: error
2024-08-18 14:16:23 +02:00
- name: Upload source JARs
2024-08-18 14:06:25 +02:00
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
with:
name: source-jars
path: |
**/build/libs/*-source.jar
if-no-files-found: error