From f3e491746a52d67a2aadafb075b808eb765c8595 Mon Sep 17 00:00:00 2001 From: Natsu Date: Sat, 6 Jul 2024 12:05:56 +0700 Subject: [PATCH] fix(build.yml): add build tools path to environment variable --- .github/workflows/build.yml | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1a0ecd0..097017e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,9 +7,6 @@ jobs: runs-on: ubuntu-latest - env: - RUNNER_TOOL_CACHE: /toolcache - steps: - name: Checkout uses: actions/checkout@v4 @@ -19,24 +16,16 @@ jobs: with: java-version: '21' distribution: 'temurin' + cache: gradle - name: Setup Android Development Environment uses: android-actions/setup-android@v3 - - name: Cache Gradle - uses: actions/cache@v4 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - gradle-${{ runner.os }}- - - name: Install Dependencies run: | sdkmanager --install "cmake;3.22.1" echo "cmake.dir=$ANDROID_HOME/cmake/3.22.1" > local.properties + echo "$ANDROID_HOME/build-tools/34.0.0" >> $GITHUB_PATH" - name: Get Branch and Hash Info run: | @@ -64,7 +53,7 @@ jobs: keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} env: - BUILD_TOOLS_VERSION: "35.0.0" + BUILD_TOOLS_VERSION: "34.0.0" continue-on-error: true - name: Rename Signed APK @@ -98,4 +87,4 @@ jobs: color: 0xffd1dc description: | Version: `${{ env.VERSION }}` - [Download](https://git.natsume.io/NatsumeLS/Gakumas-Localify-EN/actions/runs/latest/jobs/0) + [Download](https://git.natsume.io/NatsumeLS/Gakumas-Localify-EN/actions)