feat(ci): 重新实现 NDK 安装
https://stackoverflow.com/questions/60776512/how-can-i-cache-android-ndk-in-my-github-actions-workflow
This commit is contained in:
parent
7c7e72db64
commit
5103604451
1 changed files with 7 additions and 5 deletions
12
.github/workflows/android_ci.yml
vendored
12
.github/workflows/android_ci.yml
vendored
|
|
@ -38,12 +38,14 @@ jobs:
|
|||
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/key.jks
|
||||
fi
|
||||
|
||||
- name: Setup Android NDK
|
||||
uses: nttld/setup-ndk@v1.5.0
|
||||
- name: Cache NDK
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
ndk-version: r27c
|
||||
link-to-sdk: true
|
||||
local-cache: true
|
||||
path: ${ANDROID_HOME}/ndk/27.0.12077973
|
||||
key: ndk-cache
|
||||
|
||||
- name: Install NDK
|
||||
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;27.0.12077973'
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew assembleRelease
|
||||
|
|
|
|||
Loading…
Reference in a new issue