Skip to content

Commit 16b3e27

Browse files
committed
CI: add .exe suffix to Go build output on Windows
go build -o writes the exact name (no auto .exe), so the run step could not find the binary on Windows. Suffix both build and run consistently.
1 parent cba7ef5 commit 16b3e27

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/tests.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ jobs:
6868
with:
6969
go-version: 'stable'
7070

71-
- run: go build -o fast-phpunit .
71+
# `-o` writes the exact name, so add .exe on Windows ourselves
72+
- run: go build -o fast-phpunit${{ runner.os == 'Windows' && '.exe' || '' }} .
7273
working-directory: utils-tests-runner
7374

74-
# run from repo root so test-dir discovery and phpunit.xml resolve;
75-
# Go appends .exe to the output name on Windows
75+
# run from repo root so test-dir discovery and phpunit.xml resolve
7676
- run: ./utils-tests-runner/fast-phpunit${{ runner.os == 'Windows' && '.exe' || '' }}

0 commit comments

Comments
 (0)