Skip to content

Commit 24ac5c7

Browse files
committed
refactor: Build binary with CGO disabled and package files
1 parent 66f0b93 commit 24ac5c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ jobs:
2323
run: go mod tidy
2424

2525
- name: Build binary and set main.Version and main.BuildTime
26+
env:
27+
CGO_ENABLED: 0
2628
run: |
2729
TAG_NAME=${GITHUB_REF#refs/tags/}
2830
BUILD_TIME=$(date +%Y-%m-%dT%H:%M:%SZ)
2931
GOOS=linux GOARCH=amd64 go build -ldflags="-w -s -X main.Version=${TAG_NAME} -X main.BuildTime=${BUILD_TIME}" -o iot-ephemeral-value-store-server main.go
3032
chmod +x iot-ephemeral-value-store-server
33+
3134
3235
- name: Package files
3336
run: tar czvf iot-ephemeral-value-store-server.tar.gz iot-ephemeral-value-store-server

0 commit comments

Comments
 (0)