ci: verify mobile header after locked native builds

cbindgen resolves Cargo metadata without --locked and can update Cargo.lock. Run it after the native builds so it cannot hide a stale lockfile from their checks.
This commit is contained in:
cfal
2026-10-22 06:03:55 +00:00
parent afd9ea52b8
commit eb38e7a160
+4 -3
View File
@@ -55,9 +55,6 @@ jobs:
with:
tool: cbindgen@0.29.4
- name: Verify C header
run: cbindgen --verify --config cbindgen.toml --output include/shoes.h
- name: Cache Rust build
uses: Swatinem/rust-cache@v2
with:
@@ -85,3 +82,7 @@ jobs:
-- build --release --lib --locked
test -s target/aarch64-linux-android/release/libshoes.so
test -s target/armv7-linux-androideabi/release/libshoes.so
# cbindgen can update Cargo.lock, so the locked builds must run first.
- name: Verify C header
run: cbindgen --verify --config cbindgen.toml --output include/shoes.h