From 8c1ba34740fa32105253dc521b084ed48ee43f84 Mon Sep 17 00:00:00 2001 From: squid233 <60126026+squid233@users.noreply.github.com> Date: Sat, 4 May 2024 15:58:12 +0800 Subject: [PATCH] Update gradle.yml --- .github/workflows/gradle.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d0c2ed6..586b4f5 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: java: [ - 21 + 22 ] os: [ ubuntu-latest, windows-latest ] runs-on: ${{ matrix.os }} @@ -30,6 +30,7 @@ jobs: with: java-version: | ${{ matrix.java }} + 21 distribution: 'temurin' - name: Grant execute permission for gradlew if: ${{ runner.os != 'Windows' }} @@ -39,14 +40,14 @@ jobs: - name: Execute Gradle build run: ./gradlew build - name: Upload build reports - if: ${{ runner.os == 'Linux' && matrix.java == '21' && failure() }} + if: ${{ runner.os == 'Linux' && matrix.java == '22' && failure() }} uses: actions/upload-artifact@v4 with: name: build-reports path: | build/reports/ - name: Capture build artifacts - if: ${{ runner.os == 'Linux' && matrix.java == '21' }} + if: ${{ runner.os == 'Linux' && matrix.java == '22' }} uses: actions/upload-artifact@v4 with: name: Artifacts