ViaFabric/.github/workflows/build.yml

34 lines
951 B
YAML
Raw Normal View History

name: Java CI with Gradle
2021-09-19 00:19:46 +02:00
on: [ pull_request, push ]
2021-01-03 21:21:58 +01:00
jobs:
build:
runs-on: ubuntu-22.04
2021-01-03 21:21:58 +01:00
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Validate Gradle Wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Set up JDK 17
uses: actions/setup-java@v4
2021-01-03 21:21:58 +01:00
with:
distribution: 'temurin'
java-version: 17
check-latest: true
- name: Cache Dependencies
2024-01-20 23:21:14 +01:00
uses: actions/cache@v4
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-
- name: Build with Gradle
2022-05-22 19:17:14 +02:00
run: ./gradlew build
- name: Upload Artifacts
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/