VIAaaS/.github/workflows/gradle.yml

28 lines
773 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@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
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
- name: Cache Dependencies
uses: actions/cache@v3
2021-05-06 01:33:57 +02:00
with:
path: ~/.gradle/
2021-07-11 13:45:53 +02:00
key: ${{ runner.os }}-build-aspirin-${{ hashFiles('**/build.gradle.kts') }}
restore-keys: |
${{ runner.os }}-build-aspirin-
- name: Build with Gradle
run: ./gradlew build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
2021-05-04 22:15:06 +02:00
with:
name: artifact
path: build/libs/