File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -244,8 +244,16 @@ jobs:
244
244
sudo apt-get update
245
245
sudo apt-get install llvm-dev libclang-dev clang g++-multilib gcc-multilib libc6-dev libc6-dev-arm64-cross
246
246
247
+ # Relies on ls listing alphabetically, NDK versions having fixed
248
+ # digits, and the folder not containing any other files
249
+ - name : " Find highest Android NDK version"
250
+ run : |
251
+ highestNdk=$(ls $ANDROID_SDK_ROOT/ndk | tail -n1)
252
+ echo "Highest Android NDK: $highestNdk"
253
+ echo "ANDROID_NDK_VERSION=$highestNdk" >> $GITHUB_ENV
254
+
247
255
# See https://github.com/godot-rust/godot-rust/pull/920
248
- - name : " Workaround Android NDK due to Rust bug"
256
+ - name : " Found version ${{ env.ANDROID_NDK_VERSION }}. Workaround Rust bug... "
249
257
run : >
250
258
find -L $ANDROID_SDK_ROOT/ndk/$ANDROID_NDK_VERSION -name libunwind.a
251
259
-execdir sh -c 'echo "INPUT(-lunwind)" > libgcc.a' \;
@@ -256,8 +264,6 @@ jobs:
256
264
export CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=$ANDROID_SDK_ROOT/ndk/$ANDROID_NDK_VERSION/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang++
257
265
cargo build --target aarch64-linux-android --release
258
266
cargo build --target armv7-linux-androideabi --release
259
- env :
260
- ANDROID_NDK_VERSION : 25.0.8775105
261
267
262
268
integration-test-godot :
263
269
name : itest-godot-${{ matrix.godot }}${{ matrix.postfix }}
You can’t perform that action at this time.
0 commit comments