File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,14 @@ jobs:
27
27
OSS=(linux darwin)
28
28
ARCHS=(amd64 arm64)
29
29
go get
30
+ go mod download
30
31
for OS in "${OSS[@]}"; do
31
32
for ARCH in "${ARCHS[@]}"; do
32
- env GOOS="${OS}" GOARCH="${ARCH}" \
33
- go build -o "./dist/ghapp_${OS}_${ARCH}"
33
+ CGO_ENABLED=0 \
34
+ GOOS="${OS}" \
35
+ GOARCH="${ARCH}" \
36
+ go build \
37
+ -o "./dist/ghapp_${OS}_${ARCH}"
34
38
done
35
39
done
36
40
- id : docker-setup
Original file line number Diff line number Diff line change 59
59
OSS=(linux darwin)
60
60
ARCHS=(amd64 arm64)
61
61
go get
62
+ go mod download
62
63
for OS in "${OSS[@]}"; do
63
64
for ARCH in "${ARCHS[@]}"; do
64
- env GOOS="${OS}" GOARCH="${ARCH}" \
65
+ CGO_ENABLED=0 \
66
+ GOOS="${OS}" \
67
+ GOARCH="${ARCH}" \
65
68
go build \
66
69
-o "./dist/ghapp_${OS}_${ARCH}" \
67
70
-ldflags "-X main.version=${VERSION}"
Original file line number Diff line number Diff line change @@ -6,10 +6,13 @@ OSS=(linux darwin)
6
6
ARCHS=(amd64 arm64)
7
7
8
8
go get
9
+ go mod download
9
10
10
11
for OS in " ${OSS[@]} " ; do
11
12
for ARCH in " ${ARCHS[@]} " ; do
12
- env GOOS=" ${OS} " GOARCH=" ${ARCH} " \
13
+ CGO_ENABLED=0 \
14
+ GOOS=" ${OS} " \
15
+ GOARCH=" ${ARCH} " \
13
16
go build \
14
17
-o " ./dist/ghapp_${OS} _${ARCH} " \
15
18
-ldflags " -X main.version=${VERSION} "
You can’t perform that action at this time.
0 commit comments