From 8bb9951aee695ecc9200f21ea51b1f702d0659de Mon Sep 17 00:00:00 2001 From: YuKongA <70465933+YuKongA@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:10:42 +0800 Subject: [PATCH] opt: workflows: Use setup-gradle * https://github.com/gradle/actions/blob/main/docs/setup-gradle.md --- .github/workflows/ci_build.yml | 11 ++++++++--- .github/workflows/release_build.yml | 9 +++++++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci_build.yml b/.github/workflows/ci_build.yml index df3343c519..02403413b4 100644 --- a/.github/workflows/ci_build.yml +++ b/.github/workflows/ci_build.yml @@ -35,12 +35,17 @@ jobs: fetch-depth: 0 submodules: true - - name: Set up JDK 21 + - name: Setup JDK uses: actions/setup-java@v4 with: - java-version: '21' distribution: 'temurin' - cache: gradle + java-version: '21' + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + validate-wrappers: true - name: Create Sign File if: github.event_name == 'push' && github.ref == 'refs/heads/main' diff --git a/.github/workflows/release_build.yml b/.github/workflows/release_build.yml index e602975c2f..3feb70567c 100644 --- a/.github/workflows/release_build.yml +++ b/.github/workflows/release_build.yml @@ -25,12 +25,17 @@ jobs: fetch-depth: 0 submodules: true - - name: Set up JDK 21 + - name: Setup JDK uses: actions/setup-java@v4 with: java-version: '21' distribution: 'temurin' - cache: gradle + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v3 + with: + gradle-home-cache-cleanup: true + validate-wrappers: true - name: Create Sign File if: github.ref == 'refs/heads/main'