Skip to content

Commit

Permalink
build: disable CGO
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF committed Sep 28, 2024
1 parent 1573d9d commit 9b9753d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit 9b9753d

Please sign in to comment.