VIAaaS/.github/workflows/gradle.yml

31 lines
864 B
YAML
Raw Normal View History

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:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up JDK 17
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
check-latest: true
- name: Cache Dependencies
uses: actions/cache@v4
2021-05-06 01:33:57 +02:00
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
2021-07-11 13:45:53 +02:00
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build
- name: Upload Artifacts
uses: actions/upload-artifact@v4
2021-05-04 22:15:06 +02:00
with:
name: Artifacts
2021-05-04 22:15:06 +02:00
path: build/libs/