From 8c8f995b04b8ccb0ed6c9d336ef479ef146caf22 Mon Sep 17 00:00:00 2001 From: BitHeaven Date: Tue, 21 Jan 2025 15:08:20 +0500 Subject: [PATCH] Update workflow --- .gitea/workflows/build.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b7e2a64..c88f42b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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