Skip to content
This repository was archived by the owner on Jan 29, 2025. It is now read-only.

Commit 844f077

Browse files
committed
fix: add .exe suffix for windows binaries
1 parent 6fec3da commit 844f077

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ jobs:
2323
uses: actions/setup-go@v2
2424
with:
2525
go-version: 1.17
26+
- name: decide build file suffix
27+
if: ${{ matrix.goos == "windows" }}
28+
run: echo "suffix=.exe" >> $GITHUB_ENV
2629
- name: build project
2730
env:
2831
GOOS: ${{ matrix.goos }}
2932
GOARCH: ${{ matrix.goarch }}
30-
run: go build -o build/monstercat_${{ matrix.goos }}_${{ matrix.goarch }} main.go
33+
run: go build -o build/monstercat_${{ matrix.goos }}_${{ matrix.goarch }}${{ env.suffix }} main.go
3134
- name: store binary
3235
uses: actions/upload-artifact@v2
3336
with:

0 commit comments

Comments
 (0)