Skip to content

Commit

Permalink
Merge pull request #127 from actions/sh/cgo_0
Browse files Browse the repository at this point in the history
Explicitly set CGO_ENABLED=0
  • Loading branch information
shawnHartsell authored Apr 23, 2024
2 parents 17ffd6e + dc02275 commit 206dd07
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
38 changes: 24 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,26 @@
project_name: gh
project_name: actions/actions-sync

builds:
- <<: &build_defaults
binary: bin/actions-sync
id: macos
goos: [darwin]
goarch: [amd64, arm64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [amd64, arm64]
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [amd64]
- id: build
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
binary: bin/actions-sync
ignore:
- goos: windows
goarch: arm64
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


2 changes: 1 addition & 1 deletion script/build
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || {
set -x
}

go build -o bin/actions-sync main.go
CGO_ENABLED=0 go build -o bin/actions-sync main.go

0 comments on commit 206dd07

Please sign in to comment.