Merge pull request #127 from actions/sh/cgo_0

Explicitly set CGO_ENABLED=0
This commit is contained in:
Shawn Hartsell
2024-04-23 14:19:39 -05:00
committed by GitHub
2 changed files with 25 additions and 15 deletions
+24 -14
View File
@@ -1,16 +1,26 @@
project_name: gh project_name: actions/actions-sync
builds: builds:
- <<: &build_defaults - id: build
binary: bin/actions-sync goos:
id: macos - linux
goos: [darwin] - darwin
goarch: [amd64, arm64] - windows
- <<: *build_defaults goarch:
id: linux - amd64
goos: [linux] - arm64
goarch: [amd64, arm64] binary: bin/actions-sync
- <<: *build_defaults ignore:
id: windows - goos: windows
goos: [windows] goarch: arm64
goarch: [amd64] env:
- CGO_ENABLED=0
release:
github:
owner: actions
name: actions-sync
# Create the release as a draft so it can be tested before being published
# 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 CGO_ENABLED=0 go build -o bin/actions-sync main.go