2023-06-20 18:25:54 +02:00
|
|
|
name: Java CI with Gradle
|
2021-05-04 22:15:06 +02:00
|
|
|
on: [ push, pull_request ]
|
2020-10-31 11:03:46 +01:00
|
|
|
jobs:
|
|
|
|
build:
|
2022-10-13 22:35:02 +02:00
|
|
|
runs-on: ubuntu-22.04
|
2020-10-31 11:03:46 +01:00
|
|
|
steps:
|
2023-06-20 18:25:54 +02:00
|
|
|
- name: Checkout Repository
|
2024-01-19 23:01:15 +01:00
|
|
|
uses: actions/checkout@v4
|
2023-06-20 18:25:54 +02:00
|
|
|
- name: Set up JDK 17
|
2024-01-19 23:01:15 +01:00
|
|
|
uses: actions/setup-java@v4
|
2021-05-04 22:15:06 +02:00
|
|
|
with:
|
2022-10-13 22:35:02 +02:00
|
|
|
distribution: 'temurin'
|
2021-10-30 12:53:07 +02:00
|
|
|
java-version: 17
|
2024-01-19 23:01:15 +01:00
|
|
|
check-latest: true
|
2023-06-20 18:25:54 +02:00
|
|
|
- name: Cache Dependencies
|
2024-01-19 23:01:15 +01:00
|
|
|
uses: actions/cache@v4
|
2021-05-06 01:33:57 +02:00
|
|
|
with:
|
2024-01-19 23:35:55 +01:00
|
|
|
path: |
|
|
|
|
~/.gradle/caches
|
|
|
|
~/.gradle/wrapper
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
2021-07-11 13:45:53 +02:00
|
|
|
restore-keys: |
|
2024-01-19 23:35:55 +01:00
|
|
|
${{ runner.os }}-gradle-
|
2023-06-20 18:25:54 +02:00
|
|
|
- name: Build with Gradle
|
|
|
|
run: ./gradlew build
|
|
|
|
- name: Upload Artifacts
|
2024-01-19 23:01:15 +01:00
|
|
|
uses: actions/upload-artifact@v4
|
2021-05-04 22:15:06 +02:00
|
|
|
with:
|
2024-01-19 23:35:55 +01:00
|
|
|
name: Artifacts
|
2021-05-04 22:15:06 +02:00
|
|
|
path: build/libs/
|