ViaFabric/.github/workflows/build.yml

33 lines
908 B
YAML
Raw Normal View History

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:
runs-on: ubuntu-22.04
2021-01-03 21:21:58 +01:00
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v3
2021-01-03 21:21:58 +01:00
with:
distribution: 'temurin'
java-version: 17
- 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-
- name: Build with Gradle
2022-05-22 19:17:14 +02:00
run: ./gradlew build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
2021-01-03 21:21:58 +01:00
with:
name: Artifacts
2021-03-30 13:51:53 +02:00
path: build/libs/