Skip to content

Commit

Permalink
Add custom linker for Android cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
jrose-signal authored and nox committed Dec 14, 2023
1 parent 16327cf commit f82f3fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
rust: stable
os: macos-latest
- thing: arm-android
target: arm-linux-androideabi
target: armv7-linux-androideabi
rust: stable
os: ubuntu-latest
check_only: true
Expand Down Expand Up @@ -193,6 +193,9 @@ jobs:
- name: Set LIBCLANG_PATH
if: startsWith(matrix.os, 'windows')
run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
- name: Set Android Linker path
if: endsWith(matrix.thing, '-android')
run: echo "CARGO_TARGET_$(echo ${{ matrix.target }} | tr \\-a-z _A-Z)_LINKER=$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/$(echo ${{ matrix.target }} | sed s/armv7/armv7a/)21-clang++" >> "$GITHUB_ENV"
- if: "!matrix.check_only"
run: cargo test --target ${{ matrix.target }} ${{ matrix.extra_test_args }}
name: Run tests
Expand Down

0 comments on commit f82f3fc

Please sign in to comment.