From b661d94278864c5ab981644cda4054a46ea934c6 Mon Sep 17 00:00:00 2001 From: Zongle Wang Date: Tue, 10 Sep 2024 10:59:03 -0400 Subject: [PATCH] Migrate to gradle/actions/setup-gradle@v4 (#293) https://github.com/gradle/actions/releases/tag/v4.0.0 https://github.com/gradle/actions/blob/main/setup-gradle/README.md --- .github/workflows/build-debug.yaml | 8 ++++---- .github/workflows/build-pre-release.yaml | 7 ++++--- .github/workflows/build-release.yaml | 7 ++++--- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-debug.yaml b/.github/workflows/build-debug.yaml index 7041bc472..c7bac6dc8 100644 --- a/.github/workflows/build-debug.yaml +++ b/.github/workflows/build-debug.yaml @@ -20,6 +20,9 @@ jobs: distribution: 'zulu' java-version: 17 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Setup Go uses: actions/setup-go@v5 with: @@ -50,10 +53,7 @@ jobs: - name: Build if: success() - uses: gradle/gradle-build-action@v3 - with: - arguments: --no-daemon app:assembleMeta-AlphaRelease - + run: ./gradlew --no-daemon app:assembleMeta-AlphaRelease - name: Upload Aritfact (universal) uses: actions/upload-artifact@v4 diff --git a/.github/workflows/build-pre-release.yaml b/.github/workflows/build-pre-release.yaml index 6dcdd4adc..4958a140b 100644 --- a/.github/workflows/build-pre-release.yaml +++ b/.github/workflows/build-pre-release.yaml @@ -22,6 +22,9 @@ jobs: distribution: 'zulu' java-version: 17 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Setup Go uses: actions/setup-go@v5 with: @@ -52,9 +55,7 @@ jobs: - name: Pre-release Build if: success() - uses: gradle/gradle-build-action@v3 - with: - arguments: --no-daemon app:assembleMeta-AlphaRelease + run: ./gradlew --no-daemon app:assembleMeta-AlphaRelease # Delete old Prerelease-alpha - uses: dev-drprasad/delete-tag-and-release@v1.1 diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index 9ed2879c4..16c98a45c 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -25,6 +25,9 @@ jobs: distribution: 'zulu' java-version: 17 + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + - name: Setup Go uses: actions/setup-go@v5 with: @@ -90,9 +93,7 @@ jobs: - name: Release Build if: success() - uses: gradle/gradle-build-action@v3 - with: - arguments: --no-daemon app:assembleMetaRelease + run: ./gradlew --no-daemon app:assembleMetaRelease - name: Tag Repo uses: richardsimko/update-tag@v1