Skip to content

Commit

Permalink
fix(gha): add missing exe extension for windows
Browse files Browse the repository at this point in the history
Signed-off-by: kaanyagci <kaan.yagci@makepad.fr>
  • Loading branch information
kaanyagci committed Aug 12, 2024
1 parent ef1d43c commit dca9feb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,12 @@ jobs:

- name: Build binary
run: |
mkdir -p dist
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o dist/kickstart-${{ matrix.goos }}-${{ matrix.goarch }} main.go
mkdir -p dist
BINARY_NAME="kickstart-${{ matrix.goos }}-${{ matrix.goarch }}"
if [[ "${{ matrix.goos }}" == "windows" ]]; then
BINARY_NAME="${BINARY_NAME}.exe"
fi
GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -o dist/${BINARY_NAME} main.go
- name: Run tests
run: make test
Expand Down Expand Up @@ -95,12 +99,12 @@ jobs:
- name: Download Windows AMD64 Artifact
uses: actions/download-artifact@v3
with:
name: kickstart-windows-amd64
name: kickstart-windows-amd64.exe

- name: Download Windows ARM64 Artifact
uses: actions/download-artifact@v3
with:
name: kickstart-windows-arm64
name: kickstart-windows-arm64.exe

- name: Create GitHub Release
id: create_release
Expand Down

0 comments on commit dca9feb

Please sign in to comment.