Add custom linker for Android cross-compilation
This commit is contained in:
parent
16327cf5c5
commit
f82f3fcb0f
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue