simplifying goreleaser config. explicitly set CGO_ENABLED=0

This commit is contained in:
Shawn Hartsell
2024-04-23 11:05:23 -05:00
parent 17ffd6eca4
commit e6d6bca5cc
2 changed files with 25 additions and 15 deletions
+23 -13
View File
@@ -1,16 +1,26 @@
project_name: gh project_name: actions/actions-sync
builds: builds:
- <<: &build_defaults - id: build
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
binary: bin/actions-sync binary: bin/actions-sync
id: macos ignore:
goos: [darwin] - goos: windows
goarch: [amd64, arm64] goarch: arm64
- <<: *build_defaults env:
id: linux - CGO_ENABLED=0
goos: [linux] release:
goarch: [amd64, arm64] github:
- <<: *build_defaults owner: actions
id: windows name: actions-sync
goos: [windows] # Create the release as a draft so it can be tested before being published
goarch: [amd64] # To test, go to the Actions tab and run the "Actions Sync E2E Sanity Test" workflow
draft: true
+1 -1
View File
@@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || {
set -x set -x
} }
go build -o bin/actions-sync main.go CG0_ENABLED=0 go build -o bin/actions-sync main.go