ci(android): add Android NDK caching and installation to build workflow
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user