Skip to content

Commit

Permalink
ci(nuget): fix build for Android (#303)
Browse files Browse the repository at this point in the history
The Android 19 toolchain is not included anymore, so we bump the
minimum supported version to Android 21 for i686 (x86) architecture.
  • Loading branch information
CBenoit authored Aug 5, 2024
1 parent e7dc664 commit 888098f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
if: matrix.os == 'android'
shell: pwsh
run: |
$CargoConfigFile = "~/.cargo/config"
$CargoConfigFile = "~/.cargo/config.toml"
$AndroidToolchain="${Env:ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64"
Get-ChildItem -Path $AndroidToolchain "libunwind.a" -Recurse | ForEach-Object {
Expand All @@ -104,8 +104,10 @@ jobs:
}
}
Get-ChildItem -Path "$AndroidToolchain/bin/"
echo "[target.i686-linux-android]" >> $CargoConfigFile
echo "linker=`"$AndroidToolchain/bin/i686-linux-android19-clang`"" >> $CargoConfigFile
echo "linker=`"$AndroidToolchain/bin/i686-linux-android21-clang`"" >> $CargoConfigFile
echo "[target.x86_64-linux-android]" >> $CargoConfigFile
echo "linker=`"$AndroidToolchain/bin/x86_64-linux-android21-clang`"" >> $CargoConfigFile
echo "[target.armv7-linux-androideabi]" >> $CargoConfigFile
Expand Down

0 comments on commit 888098f

Please sign in to comment.