2021-01-03 21:21:58 +01:00
|
|
|
name: build
|
2021-09-19 00:19:46 +02:00
|
|
|
on: [ pull_request, push ]
|
2021-01-03 21:21:58 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-13 22:10:21 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2021-01-03 21:21:58 +01:00
|
|
|
steps:
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Checkout Repository
|
2023-09-21 19:57:20 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Validate Gradle Wrapper
|
|
|
|
uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: Set up JDK 17
|
2023-12-17 03:31:17 +01:00
|
|
|
uses: actions/setup-java@v4
|
2021-01-03 21:21:58 +01:00
|
|
|
with:
|
2022-10-13 22:18:19 +02:00
|
|
|
distribution: 'temurin'
|
|
|
|
java-version: 17
|
2023-09-21 19:57:20 +02:00
|
|
|
check-latest: true
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Cache Dependencies
|
|
|
|
uses: actions/cache@v3
|
2021-05-06 01:38:09 +02:00
|
|
|
with:
|
2021-09-19 00:19:46 +02:00
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Build with Gradle
|
2022-05-22 19:17:14 +02:00
|
|
|
run: ./gradlew build
|
2023-06-18 21:13:21 +02:00
|
|
|
- name: Upload Artifacts
|
2023-12-17 03:31:17 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-01-03 21:21:58 +01:00
|
|
|
with:
|
|
|
|
name: Artifacts
|
2021-03-30 13:51:53 +02:00
|
|
|
path: build/libs/
|