From ac5af89b6e7aa32caad335bef571a32efeb1a4f4 Mon Sep 17 00:00:00 2001 From: t Date: Thu, 3 Dec 2026 11:08:15 +0100 Subject: [PATCH] ci: test the D3D12 scope with a here-string, not a pipe (review) Under pipefail a grep that matched early could make printf fail with SIGPIPE on a large file list, which the negated test read as no D3D12 change and skipped the build. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/d3d12.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/d3d12.yml b/.github/workflows/d3d12.yml index 94becff33..797b5a082 100644 --- a/.github/workflows/d3d12.yml +++ b/.github/workflows/d3d12.yml @@ -59,7 +59,8 @@ jobs: git fetch --no-tags --depth=1 origin "${GROUP_BASE}" || base="" fi if [ -n "$base" ] && files=$(git diff --name-only --no-renames "$base" "$GITHUB_SHA" --); then - if ! printf '%s\n' "$files" | grep -qE '^(d3d12/|mods/|\.github/workflows/d3d12\.yml$)'; then + # A here-string, not a pipe: under pipefail an early match could kill the writer and skip the build. + if ! grep -qE '^(d3d12/|mods/|\.github/workflows/d3d12\.yml$)' <<<"$files"; then touched=false fi fi