Skip to content

Commit 628806c

Browse files
zackeesclaude
andcommitted
ci(terminal): find the debug binary wherever soldr placed it
On Windows soldr builds for an explicit host triple, so the binary lives under target/<triple>/debug and the fixed target/debug path did not exist. Refs #259 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 281173c commit 628806c

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎.github/workflows/_terminal-test.yml‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,23 @@ jobs:
7272
- name: Install esbuild
7373
run: |
7474
npm install --prefix "$RUNNER_TEMP/esbuild" --no-save --no-audit --no-fund "esbuild@$ESBUILD_VERSION"
75+
# soldr may build for an explicit host triple, which places the
76+
# binary under target/<triple>/debug instead of target/debug.
7577
if [ "$RUNNER_OS" = "Windows" ]; then
7678
esbuild="$(cygpath -w "$RUNNER_TEMP/esbuild/node_modules/@esbuild/win32-x64/esbuild.exe")"
77-
binary="$(cygpath -w "$GITHUB_WORKSPACE/target/debug/fastled.exe")"
79+
found="$(find target -path '*/debug/fastled.exe' -not -path '*/deps/*' | head -n 1)"
80+
binary="$(cygpath -w "$GITHUB_WORKSPACE/$found")"
7881
else
7982
esbuild="$RUNNER_TEMP/esbuild/node_modules/.bin/esbuild"
80-
binary="$GITHUB_WORKSPACE/target/debug/fastled"
83+
found="$(find target -path '*/debug/fastled' -type f -not -path '*/deps/*' | head -n 1)"
84+
binary="$GITHUB_WORKSPACE/$found"
85+
fi
86+
if [ -z "$found" ]; then
87+
echo "no debug fastled binary under target/" >&2
88+
exit 1
8189
fi
8290
"$esbuild" --version
91+
"$binary" --version
8392
echo "FASTLED_ESBUILD=$esbuild" >> "$GITHUB_ENV"
8493
echo "FASTLED_TERMINAL_BINARY=$binary" >> "$GITHUB_ENV"
8594

0 commit comments

Comments
 (0)