From a71e273e4e19953e81182c0a3bf3199027f20e2a Mon Sep 17 00:00:00 2001 From: DarkSky Date: Sat, 5 Dec 2026 06:26:03 +0900 Subject: [PATCH] ci(np): reuse desktop dependencies when building macos bs-harness Pass `-p affine-desktop` and `--features playground/harness` to build `bs-harness` in the `macos-headless` job. This command reuses the crates from the earlier desktop test step. It stops Cargo from rebuilding shared dependencies with different features. Also compare `artifacts/macos-run1.json` and `artifacts/macos-run2.json` with `cmp`. This check confirms that both renders write identical snapshot JSON bytes. --- .github/workflows/native-playground.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/native-playground.yml b/.github/workflows/native-playground.yml index ed35b034d4..bef0b1de4f 100644 --- a/.github/workflows/native-playground.yml +++ b/.github/workflows/native-playground.yml @@ -730,7 +730,7 @@ jobs: if: needs.changes.outputs.desktop-leaf-only != 'true' run: | mkdir -p artifacts - cargo build --locked --profile test -p playground --features harness --bin bs-harness + cargo build --locked --profile test -p affine-desktop -p playground --features playground/harness --bin bs-harness ./target/debug/bs-harness render \ --out artifacts/macos-run1.png \ --snapshot artifacts/macos-run1.json \ @@ -748,6 +748,7 @@ jobs: echo "Run 1 SHA256: $sha1" echo "Run 2 SHA256: $sha2" test "$sha1" = "$sha2" + cmp artifacts/macos-run1.json artifacts/macos-run2.json ./target/debug/bs-harness audit --snapshot artifacts/macos-run1.json - name: Upload macOS headless artifacts