From 98ceed0c2451a67fa25ae972f1f51859cfc0256b Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Fri, 28 Jun 2024 09:21:30 +0200 Subject: [PATCH] chore: try to fix broken amd64 executable --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df61414..d70ad55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,12 +56,12 @@ jobs: with: path: build-artifacts/templates.zip key: templates-${{ hashFiles('templates/**') }} - - uses: actions/setup-go@v2 + - uses: actions/setup-go@v5 with: go-version: '^1.17.x' - - run: GOOS=linux GOARCH=amd64 go build -o build-artifacts/vistecture-linux-amd64 vistecture.go - - run: GOOS=linux GOARCH=arm64 go build -o build-artifacts/vistecture-linux-arm64 vistecture.go - - run: GOOS=windows go build -o build-artifacts/vistecture.exe vistecture.go + - run: GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o build-artifacts/vistecture-linux-amd64 vistecture.go + - run: GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build-artifacts/vistecture-linux-arm64 vistecture.go + - run: GOOS=windows CGO_ENABLED=0 go build -o build-artifacts/vistecture.exe vistecture.go - uses: actions/upload-artifact@v4 with: name: binaries