Skip to content

Commit 9542535

Browse files
authored
Revert "cross is unnecessary for android (#1691)"
This reverts commit 6219b8a.
1 parent 798e5da commit 9542535

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release-kotlin-bindings.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,16 @@ jobs:
3434
workspaces: |
3535
.
3636
bindings_ffi
37-
- uses: taiki-e/install-action@v2
38-
with:
39-
tool: cargo-ndk
37+
# Install latest cross to mitigate unwind linking issue on android builds.
38+
# See https://github.com/cross-rs/cross/issues/1222
39+
- name: Install cross
40+
run: |
41+
cargo install cross --git https://github.com/cross-rs/cross
4042
- name: Build target
43+
env:
44+
CROSS_NO_WARNINGS: "0"
4145
run: |
42-
cargo ndk -o bindings_ffi/jniLibs/ --manifest-path bindings_ffi/Cargo.toml -t ${{ matrix.target }} -- build --release
46+
cross build --release --target ${{ matrix.target }} --manifest-path bindings_ffi/Cargo.toml
4347
- name: Prepare JNI libs
4448
run: |
4549
mkdir -p bindings_ffi/jniLibs/${{ matrix.output_target }}/ && \

0 commit comments

Comments
 (0)