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'
java-version: ${{ matrix.java }}
- name: Cache Gradle packages
- name: Loom Cache
uses: actions/cache@v4
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
path: "**/.gradle/loom-cache"
key: "${{ runner.os }}-gradle-${{ hashFiles('**/libs.versions.*', '**/*.gradle*', '**/gradle-wrapper.properties') }}"
restore-keys: "${{ runner.os }}-gradle-"
- name: Setup 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
run: ./gradlew build
- name: Upload Mod JAR
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: create-air-fabric
path: build/libs/*.jar