Update workflow
Some checks failed
build / build (17) (push) Failing after 9m20s
build / upload-release (push) Has been skipped

This commit is contained in:
BitHeaven 2025-01-21 15:08:20 +05:00
parent 4f78c9bd03
commit 8c8f995b04

View File

@ -22,21 +22,26 @@ jobs:
distribution: 'oracle' distribution: 'oracle'
java-version: ${{ matrix.java }} java-version: ${{ matrix.java }}
- name: Cache Gradle packages - name: Loom Cache
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: | path: "**/.gradle/loom-cache"
~/.gradle/caches key: "${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}"
~/.gradle/wrapper restore-keys: "${{ runner.os }}-gradle-"
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: | - name: Setup Gradle
${{ runner.os }}-gradle- uses: gradle/actions/setup-gradle@v4
with:
gradle-home-cache-cleanup: true
- name: Validate Gradle Wrapper Integrity
uses: gradle/wrapper-validation-action@v2
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew build run: ./gradlew build
- name: Upload Mod JAR - name: Upload Mod JAR
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: create-air-fabric name: create-air-fabric
path: build/libs/*.jar path: build/libs/*.jar