Skip to content

Commit

Permalink
Add .exe extension to windows binaries (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermanimer committed Apr 6, 2023
1 parent 8aa3556 commit 844ddf1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:
go-version: ${{ matrix.go-version }}

- name: Build
run: GOOS=${{ matrix.os[1] }} GOARCH=${{ matrix.arch }} go build -v -o build/bizip_${{ matrix.os[1] }}_${{ matrix.arch }} ./cmd/bizip
run: |
output=build/bizip_${{ matrix.os[1] }}_${{ matrix.arch }}
[ ${{ matrix.os[1] }} = windows ] && output+=.exe
GOOS=${{ matrix.os[1] }} GOARCH=${{ matrix.arch }} go build -v -o $output ./cmd/bizip
- uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 844ddf1

Please sign in to comment.