Skip to content

Commit

Permalink
fix: Windows build not executable on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
boukeversteegh committed Mar 20, 2022
1 parent 7e3c2c1 commit 528c7d8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,15 @@ jobs:
strategy:
matrix:
target:
- { name: windows64, GOOS: windows, GOARCH: amd64, BIN: "dockerized.exe" }
- { name: windows64, GOOS: windows }
steps:
- uses: actions/checkout@v2
- run: mkdir -p release/${{ matrix.target.name }}
- name: Copy static assets
run: cp -r apps/ .env *.md docker-compose.yml release/${{ matrix.target.name }}
- name: Build
env:
GOOS: "${{ matrix.target.GOOS }}"
BIN: "${{ matrix.target.BIN }}"
GO_VERSION: "1.17.8"
run: |
bin/dockerized go build -o release/${{ matrix.target.name }}/bin/$BIN lib/dockerized.go
GO_VERSION=1.17.8 GOOS=${{ matrix.target.GOOS }} bin/dockerized go build -o release/${{ matrix.target.name }}/bin/ lib/dockerized.go
- name: Zip
working-directory: release/${{ matrix.target.name }}
run: |
Expand Down

0 comments on commit 528c7d8

Please sign in to comment.