Skip to content

Commit fc85d71

Browse files
committed
fix(ci): force clean rebuild of sandchest-agent to bust stale cache
The Rust cache was serving a stale agent binary without vsock support. Add cargo clean -p before build and a post-build verification step that checks the binary contains vsock symbols.
1 parent b9813fe commit fc85d71

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/build-images.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ jobs:
4545
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler musl-tools debootstrap e2fsprogs
4646

4747
- name: Build guest agent (static musl binary)
48-
run: cargo build --release --package sandchest-agent --target x86_64-unknown-linux-musl --features vsock
48+
run: |
49+
cargo clean -p sandchest-agent --target x86_64-unknown-linux-musl --release
50+
cargo build --release --package sandchest-agent --target x86_64-unknown-linux-musl --features vsock
51+
52+
- name: Verify agent has vsock support
53+
run: |
54+
strings target/x86_64-unknown-linux-musl/release/sandchest-agent | grep -c vsock || { echo "ERROR: agent binary missing vsock support"; exit 1; }
55+
ls -la target/x86_64-unknown-linux-musl/release/sandchest-agent
4956
5057
- name: Fetch kernel
5158
working-directory: images

0 commit comments

Comments
 (0)