ci(android): add Android NDK caching and installation to build workflow

This commit is contained in:
lafay
2026-05-14 01:25:54 +08:00
parent 1d9c312c6c
commit 4308077232
5 changed files with 162 additions and 11 deletions

View File

@@ -209,6 +209,23 @@ jobs:
sed -i '/always-auth/d' ~/.npmrc
fi
- name: Cache Android NDK
uses: actions/cache@v4
id: cache-ndk
with:
path: /opt/android/ndk/27.0.12077973
key: ndk-27.0.12077973-v1
- name: Install Android NDK
if: steps.cache-ndk.outputs.cache-hit != 'true'
run: |
echo "Existing NDK versions:"
ls /opt/android/ndk/ 2>/dev/null || echo "No NDK dir"
echo "Installing NDK 27.0.12077973..."
yes | sdkmanager --install "ndk;27.0.12077973"
echo "NDK after install:"
ls /opt/android/ndk/
- name: Cache Gradle
uses: actions/cache@v4
with:
@@ -360,6 +377,7 @@ jobs:
expo.gif.enabled=true
expo.webp.enabled=true
expo.webp.animated=false
ndkVersion=27.1.12297006
expo.useLegacyPackaging=false
PROPS_EOF