From dca9feb33b965cfd43fd1abbd82764420159c45a Mon Sep 17 00:00:00 2001 From: kaanyagci Date: Mon, 12 Aug 2024 18:19:07 +0200 Subject: [PATCH] fix(gha): add missing exe extension for windows Signed-off-by: kaanyagci --- .github/workflows/ci.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2bcb72d..ef5e18a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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