From ceef8065b02a8cf007e7a6ed3f6e71965fa20ad6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 17 Mar 2026 17:05:40 -0700 Subject: [PATCH] ci: filter build-examples to directories with build.zig.zon The dynamic example directory discovery added in bb3b3ba included all subdirectories under example/, but some (wasm-key-encode, wasm-sgr) are pure HTML examples with no build.zig.zon. Running zig build in those directories falls back to the root build.zig and attempts a full GTK binary build, which fails on CI. Filter the listing to only include directories that contain a build.zig.zon file so non-Zig examples are excluded from the build matrix. --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 872e41352..9e2388d88 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -179,7 +179,7 @@ jobs: - id: list name: List example directories run: | - dirs=$(ls -d example/*/ | xargs -n1 basename | jq -R -s -c 'split("\n") | map(select(. != ""))') + dirs=$(ls example/*/build.zig.zon 2>/dev/null | xargs -n1 dirname | xargs -n1 basename | jq -R -s -c 'split("\n") | map(select(. != ""))') echo "$dirs" | jq . echo "dirs=$dirs" >> "$GITHUB_OUTPUT"