mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 09:08:38 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
3
.github/workflows/d3d12.yml
vendored
3
.github/workflows/d3d12.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user