fix(build.yml): add build tools path to environment variable
Some checks failed
Android CI / build (push) Failing after 46s
Some checks failed
Android CI / build (push) Failing after 46s
This commit is contained in:
parent
f5dd5f3826
commit
f3e491746a
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user