File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,24 +32,29 @@ jobs:
3232
3333 - name : Install NDK
3434 run : |
35- NDK_VERSION="25.2.9519653"
35+ set -e
36+ NDK_VERSION="27c"
3637 cd /tmp
37- wget -q https://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux.zip
38- unzip -q android-ndk-${NDK_VERSION}-linux.zip
39-
40- ANDROID_NDK_HOME=/tmp/android-ndk-${NDK_VERSION}
38+ echo "Downloading NDK version ${NDK_VERSION}..."
39+ wget --no-verbose https://dl.google.com/android/repository/android-ndk-r${NDK_VERSION}-linux.zip
40+ echo "Extracting NDK..."
41+ unzip -q android-ndk-r${NDK_VERSION}-linux.zip
42+
43+ ANDROID_NDK_HOME=/tmp/android-ndk-r${NDK_VERSION}
4144 TOOLCHAIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64
42-
45+
4346 echo "ANDROID_NDK_HOME=$ANDROID_NDK_HOME" >> $GITHUB_ENV
4447 echo "TOOLCHAIN=$TOOLCHAIN" >> $GITHUB_ENV
45-
48+
4649 if [ "${{ matrix.goarch }}" = "arm64" ]; then
4750 echo "CC=$TOOLCHAIN/bin/aarch64-linux-android21-clang" >> $GITHUB_ENV
4851 elif [ "${{ matrix.goarch }}" = "amd64" ]; then
4952 echo "CC=$TOOLCHAIN/bin/x86_64-linux-android21-clang" >> $GITHUB_ENV
5053 elif [ "${{ matrix.goarch }}" = "arm" ]; then
5154 echo "CC=$TOOLCHAIN/bin/armv7a-linux-androideabi21-clang" >> $GITHUB_ENV
5255 fi
56+
57+ echo "NDK installation complete!"
5358
5459 - name : Build Android Binary
5560 env :
You can’t perform that action at this time.
0 commit comments