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
|
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/key.jks
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Setup Android NDK
|
- name: Cache NDK
|
||||||
uses: nttld/setup-ndk@v1.5.0
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
ndk-version: r27c
|
path: ${ANDROID_HOME}/ndk/27.0.12077973
|
||||||
link-to-sdk: true
|
key: ndk-cache
|
||||||
local-cache: true
|
|
||||||
|
- name: Install NDK
|
||||||
|
run: echo "y" | sudo ${ANDROID_HOME}/tools/bin/sdkmanager --install 'ndk;27.0.12077973'
|
||||||
|
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew assembleRelease
|
run: ./gradlew assembleRelease
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue