From ae097cae6668bb1bd3f04b6346cf02257db67e9a Mon Sep 17 00:00:00 2001 From: AlexBob Date: Tue, 17 Dec 2024 10:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(`.github/workflows/gradle-buil?= =?UTF-8?q?d.yml`):=20Update=20workflow=20to=20use=20actions/setup-java=20?= =?UTF-8?q?and=20setup-gradle=20for=20better=20compatibility=20and=20suppo?= =?UTF-8?q?rt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle-build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index e70ec25..154db18 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -32,13 +32,15 @@ jobs: uses: actions/checkout@v4 - name: Set up graalvm 21 for x64 - uses: graalvm/setup-graalvm@v1 + uses: actions/setup-java@v4 with: - version: 'latest' java-version: '21' distribution: 'liberica' - native-image-job-reports: 'true' cache: 'gradle' + cache-dependency-path: | # optional + *.gradle* + **/gradle-wrapper.properties + /tmp/** - name: Set up QEMU uses: docker/setup-qemu-action@v3 with: @@ -47,7 +49,8 @@ jobs: uses: docker/setup-buildx-action@v3 with: driver-opts: network=host - + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 - name: Execute Gradle Plate bootBuildImage run: | chmod +x ./gradlew