Skip to content

Commit bd97381

Browse files
author
Sébastien HOUZÉ
committed
fix(cd): fix build of artifacts
1 parent 5633188 commit bd97381

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
GO_BUILD_OPTIONS: "-a -installsuffix cgo"
3232
GO_BUILD_LDFLAGS: "-s -w"
3333
GOARCH: amd64
34+
CGO_ENABLED: 0
3435
TAG_NAME: ${{ github.event.release.tag_name }}
3536
run: |
3637
export BUILD_DATE=$(date "+%Y-%m-%d")
@@ -41,21 +42,22 @@ jobs:
4142
-X github.com/inextensodigital/github/cmd.commitHash=${BUILD_COMMIT_HASH}
4243
"
4344
44-
export GOOS=darwin
45+
export GOOS=linux
4546
export NAME=github-${GOOS}-${GOARCH}
46-
printf "Building ${NAME}..."
47+
printf "Building ${NAME}...\n"
4748
go build ${GO_BUILD_OPTIONS} -ldflags "${GO_BUILD_LDFLAGS}" -o release/${NAME}
4849
shasum -a 256 release/${NAME} > "release/${NAME}.sha256"
4950
5051
export GOOS=windows
5152
export NAME=github-${GOOS}-${GOARCH}.exe
52-
printf "Building ${NAME}..."
53+
printf "Building ${NAME}...\n"
5354
go build ${GO_BUILD_OPTIONS} -ldflags "${GO_BUILD_LDFLAGS}" -o release/${NAME}
5455
shasum -a 256 release/${NAME} > "release/${NAME}.sha256"
5556
5657
export GOOS=darwin
5758
export NAME=github-${GOOS}-${GOARCH}
58-
printf "Building ${NAME}..."
59+
export CGO_ENABLED=1
60+
printf "Building ${NAME}...\n"
5961
go build ${GO_BUILD_OPTIONS} -ldflags "${GO_BUILD_LDFLAGS}" -o release/${NAME}
6062
shasum -a 256 release/${NAME} > "release/${NAME}.sha256"
6163

0 commit comments

Comments
 (0)