From e6d6bca5ccf3b0ac4aaadb422768d8d0f7e74df4 Mon Sep 17 00:00:00 2001 From: Shawn Hartsell Date: Tue, 23 Apr 2024 11:05:23 -0500 Subject: [PATCH 1/2] simplifying goreleaser config. explicitly set CGO_ENABLED=0 --- .goreleaser.yml | 38 ++++++++++++++++++++++++-------------- script/build | 2 +- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7f6b6b9f..f88ca00d 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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 + + diff --git a/script/build b/script/build index 4f8ff951..94fc1216 100755 --- a/script/build +++ b/script/build @@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || { set -x } -go build -o bin/actions-sync main.go \ No newline at end of file +CG0_ENABLED=0 go build -o bin/actions-sync main.go From dc02275ad7ca9ce2a9864a2f5cc54591acb2a840 Mon Sep 17 00:00:00 2001 From: Shawn Hartsell Date: Tue, 23 Apr 2024 11:21:44 -0500 Subject: [PATCH 2/2] fixing typo --- script/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/build b/script/build index 94fc1216..4987ff32 100755 --- a/script/build +++ b/script/build @@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || { set -x } -CG0_ENABLED=0 go build -o bin/actions-sync main.go +CGO_ENABLED=0 go build -o bin/actions-sync main.go