Skip to content

Commit 206dd07

Browse files
Merge pull request #127 from actions/sh/cgo_0
Explicitly set CGO_ENABLED=0
2 parents 17ffd6e + dc02275 commit 206dd07

File tree

2 files changed

+25
-15
lines changed

2 files changed

+25
-15
lines changed

.goreleaser.yml

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
1-
project_name: gh
1+
project_name: actions/actions-sync
22

33
builds:
4-
- <<: &build_defaults
5-
binary: bin/actions-sync
6-
id: macos
7-
goos: [darwin]
8-
goarch: [amd64, arm64]
9-
- <<: *build_defaults
10-
id: linux
11-
goos: [linux]
12-
goarch: [amd64, arm64]
13-
- <<: *build_defaults
14-
id: windows
15-
goos: [windows]
16-
goarch: [amd64]
4+
- id: build
5+
goos:
6+
- linux
7+
- darwin
8+
- windows
9+
goarch:
10+
- amd64
11+
- arm64
12+
binary: bin/actions-sync
13+
ignore:
14+
- goos: windows
15+
goarch: arm64
16+
env:
17+
- CGO_ENABLED=0
18+
release:
19+
github:
20+
owner: actions
21+
name: actions-sync
22+
# Create the release as a draft so it can be tested before being published
23+
# To test, go to the Actions tab and run the "Actions Sync E2E Sanity Test" workflow
24+
draft: true
25+
26+

script/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ test -z "${DEBUG:-}" || {
77
set -x
88
}
99

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

0 commit comments

Comments
 (0)