Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
james58899 committed Jun 5, 2024
1 parent b03e40d commit 48f1e3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install Android NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: r26d
add-to-path: false
- uses: actions/cache@v4
with:
path: |
Expand All @@ -193,11 +195,14 @@ jobs:
rustup target add ${{ matrix.target }}
- name: Build
env:
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER: "aarch64-linux-android21-clang"
CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER: "armv7a-linux-androideabi21-clang"
CARGO_TARGET_I686_LINUX_ANDROID_LINKER: "i686-linux-android21-clang"
CARGO_TARGET_X86_64_LINUX_ANDROID_LINKER: "x86_64-linux-android21-clang"
run: cargo build --verbose --release --target=${{ matrix.target }}
run: |
export PATH=$PATH:${ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin
cargo build --verbose --release --target=${{ matrix.target }}
- uses: actions/upload-artifact@v4
with:
name: hath-rust-${{ matrix.target }}
Expand Down

0 comments on commit 48f1e3f

Please sign in to comment.