ci: fix CI for NDK

This commit is contained in:
Mitchell Hashimoto
2026-02-21 14:05:47 -08:00
committed by Elias Andualem
parent 12c2f5c359
commit 79e530a0f3

View File

@@ -373,7 +373,7 @@ jobs:
path: |
/nix
/zig
/opt/android-ndk
~/Android/ndk
# Install Nix and use that to run our tests so our environment matches exactly.
- uses: cachix/install-nix-action@2126ae7fc54c9df00dd18f7f18754393182c73cd # v31.9.1
@@ -387,11 +387,12 @@ jobs:
- name: Setup Android NDK
run: |
NDK_ROOT="$HOME/Android/ndk"
NDK_DIR = "$NDK_DIR/android-ndk-${{ env.ANDROID_NDK_VERSION }}"
NDK_DIR="$NDK_ROOT/android-ndk-${{ env.ANDROID_NDK_VERSION }}"
if [ ! -d "$NDK_DIR" ]; then
curl -fsSL -o /tmp/ndk.zip "https://dl.google.com/android/repository/android-ndk-${ANDROID_NDK_VERSION}-linux.zip"
mkdir -p $NDK_DIR
unzip -q /tmp/ndk.zip -d $NDK_DIR
curl -fsSL -o /tmp/ndk.zip \
"https://dl.google.com/android/repository/android-ndk-${{ env.ANDROID_NDK_VERSION }}-linux.zip"
mkdir -p $NDK_ROOT
unzip -q /tmp/ndk.zip -d $NDK_ROOT
rm /tmp/ndk.zip
fi
echo "ANDROID_NDK_HOME=$NDK_DIR" >> "$GITHUB_ENV"