From eb38e7a160f09ee3d9b099da59b02e27fc8e604d Mon Sep 17 00:00:00 2001 From: cfal Date: Thu, 22 Oct 2026 06:03:55 +0000 Subject: [PATCH] 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. --- .github/workflows/mobile.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml index 839d5b3f..f905b995 100644 --- a/.github/workflows/mobile.yml +++ b/.github/workflows/mobile.yml @@ -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