GitHub updated the versions of NDK installed on the Actions runners
breaking the ARM tests.
Restore the NDKv21 using the GitHub suggested mitigation, see:
https://github.com/actions/virtual-environments/issues/5595
closes https://github.com/official-stockfish/Stockfish/pull/4077
No functional change
- master
- tools
- github_ci
- master
- tools
- github_ci
pull_request:
branches:
- master
pull_request:
branches:
- master
- name: Test armv8 build
if: ${{ matrix.config.run_armv8_tests }}
run: |
- name: Test armv8 build
if: ${{ matrix.config.run_armv8_tests }}
run: |
+ ANDROID_ROOT=/usr/local/lib/android
+ ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
+ SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
+ echo "y" | $SDKMANAGER "ndk;21.4.7075529"
+ ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
+ ln -sfn $ANDROID_SDK_ROOT/ndk/21.4.7075529 $ANDROID_NDK_ROOT
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export LDFLAGS="-static -Wno-unused-command-line-argument"
make clean
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export LDFLAGS="-static -Wno-unused-command-line-argument"
make clean
- name: Test armv7 build
if: ${{ matrix.config.run_armv7_tests }}
run: |
- name: Test armv7 build
if: ${{ matrix.config.run_armv7_tests }}
run: |
+ ANDROID_ROOT=/usr/local/lib/android
+ ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
+ SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
+ echo "y" | $SDKMANAGER "ndk;21.4.7075529"
+ ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
+ ln -sfn $ANDROID_SDK_ROOT/ndk/21.4.7075529 $ANDROID_NDK_ROOT
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export LDFLAGS="-static -Wno-unused-command-line-argument"
make clean
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export LDFLAGS="-static -Wno-unused-command-line-argument"
make clean
- name: Test armv7-neon build
if: ${{ matrix.config.run_armv7_tests }}
run: |
- name: Test armv7-neon build
if: ${{ matrix.config.run_armv7_tests }}
run: |
+ ANDROID_ROOT=/usr/local/lib/android
+ ANDROID_SDK_ROOT=${ANDROID_ROOT}/sdk
+ SDKMANAGER=${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager
+ echo "y" | $SDKMANAGER "ndk;21.4.7075529"
+ ANDROID_NDK_ROOT=${ANDROID_SDK_ROOT}/ndk-bundle
+ ln -sfn $ANDROID_SDK_ROOT/ndk/21.4.7075529 $ANDROID_NDK_ROOT
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export LDFLAGS="-static -Wno-unused-command-line-argument"
make clean
export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
export LDFLAGS="-static -Wno-unused-command-line-argument"
make clean