mirror of
https://github.com/ViaVersion/ViaForge.git
synced 2025-01-02 18:38:18 +01:00
Auto: Migrate to setup-gradle action
This commit is contained in:
parent
9d75c110c4
commit
9a55272d40
13
.github/workflows/build.yml
vendored
13
.github/workflows/build.yml
vendored
@ -9,23 +9,14 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- name: Validate Gradle Wrapper
|
- name: Set up Gradle
|
||||||
uses: gradle/actions/wrapper-validation@v4
|
uses: gradle/actions/setup-gradle@v4
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: 21
|
java-version: 21
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
- name: Cache Dependencies
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.gradle/caches
|
|
||||||
~/.gradle/wrapper
|
|
||||||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-gradle-
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew shadowJar
|
run: ./gradlew shadowJar
|
||||||
- name: Upload Build Artifacts
|
- name: Upload Build Artifacts
|
||||||
|
Loading…
Reference in New Issue
Block a user