From 9b9753d28873860e84be59c3cfc86bf56c864bfd Mon Sep 17 00:00:00 2001 From: Andy Ford Date: Sat, 28 Sep 2024 16:49:01 +0100 Subject: [PATCH] build: disable CGO --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c988f6..55a5c28 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,13 +21,13 @@ jobs: run: go mod tidy - name: Run Build (x86_64) - run: env GOOS=linux GOARCH=amd64 go build -o build/srd-tools-linux-amd64 ./cmd/srd/main.go + run: env GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o build/srd-tools-linux-amd64 ./cmd/srd/main.go - name: Run Build (ARM 64) - run: env GOOS=linux GOARCH=arm64 go build -o build/srd-tools-linux-arm64 ./cmd/srd/main.go + run: env GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/srd-tools-linux-arm64 ./cmd/srd/main.go - name: Run Build (MacOS Silicon) - run: env GOOS=darwin GOARCH=arm64 go build -o build/srd-tools-darwin-arm64 ./cmd/srd/main.go + run: env GOOS=darwin GOARCH=arm64 CGO_ENABLED=0 go build -o build/srd-tools-darwin-arm64 ./cmd/srd/main.go - name: Upload Release Assets uses: AButler/upload-release-assets@v3.0