1
0

fix(build.yml): add build tools path to environment variable
Some checks failed
Android CI / build (push) Failing after 46s

This commit is contained in:
Natsu 2024-07-06 12:05:56 +07:00
parent f5dd5f3826
commit f3e491746a
Signed by: NatsumeLS
GPG Key ID: 6DB67FB460CF46C6

View File

@ -7,9 +7,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -19,24 +16,16 @@ jobs:
with: with:
java-version: '21' java-version: '21'
distribution: 'temurin' distribution: 'temurin'
cache: gradle
- name: Setup Android Development Environment - name: Setup Android Development Environment
uses: android-actions/setup-android@v3 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 - name: Install Dependencies
run: | run: |
sdkmanager --install "cmake;3.22.1" sdkmanager --install "cmake;3.22.1"
echo "cmake.dir=$ANDROID_HOME/cmake/3.22.1" > local.properties 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 - name: Get Branch and Hash Info
run: | run: |
@ -64,7 +53,7 @@ jobs:
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }}
env: env:
BUILD_TOOLS_VERSION: "35.0.0" BUILD_TOOLS_VERSION: "34.0.0"
continue-on-error: true continue-on-error: true
- name: Rename Signed APK - name: Rename Signed APK
@ -98,4 +87,4 @@ jobs:
color: 0xffd1dc color: 0xffd1dc
description: | description: |
Version: `${{ env.VERSION }}` 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)