Skip to content

Commit cd0a380

Browse files
committed
Update cargo-ndk to 4.1.1
Don't pass `--bindgen` (it was removed), and use long names for `--target` and `--platform`.
1 parent bc094d0 commit cd0a380

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
env:
1111
CARGO_TERM_COLOR: always
1212
NDK_VERSION: "r27"
13-
CARGO_NDK_VERSION: "3.5.4"
13+
CARGO_NDK_VERSION: "4.1.1"
1414

1515
jobs:
1616
build-native-libs:
@@ -58,7 +58,7 @@ jobs:
5858
- name: Build native libs
5959
run: |
6060
unset ANDROID_SDK_ROOT # Deprecated, will cause an error if left set.
61-
cargo ndk --bindgen --target ${{ matrix.android-abi }} --platform 26 -o jniLibs build --release --features jpegxr
61+
cargo ndk --target ${{ matrix.android-abi }} --platform 26 -o jniLibs build --release --features jpegxr
6262
env:
6363
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }}
6464

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: cargo install cargo-ndk
3838

3939
- name: Check clippy
40-
run: cargo ndk --bindgen -t arm64-v8a -- clippy --all --all-features --tests -- -D warnings
40+
run: cargo ndk --target arm64-v8a --platform 26 -- clippy --all --all-features --tests -- -D warnings
4141

4242
android:
4343
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)