File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 28
28
go mod download
29
29
30
30
- name : Run build
31
- run : env GOOS=linux go build -ldflags="-s -w" -o bin/lambda-golang-redirect functions/redirect/main.go
31
+ run : env GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/lambda-golang-redirect functions/redirect/main.go
32
32
33
33
- name : Validate
34
34
working-directory : functions/redirect
Original file line number Diff line number Diff line change 39
39
go mod download
40
40
41
41
- name : Run build
42
- run : env GOARCH=amd64 GOOS=linux go build -ldflags="-s -w" -o bin/lambda-golang-redirect functions/redirect/main.go
42
+ run : env GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -ldflags="-s -w" -o bin/lambda-golang-redirect functions/redirect/main.go
43
43
44
44
- name : Validate
45
45
working-directory : functions/redirect
Original file line number Diff line number Diff line change 2
2
3
3
build :
4
4
go mod verify
5
- env GOARCH=amd64 GOOS=linux go build -ldflags=" -s -w" -o bin/lambda-golang-redirect ./functions/redirect/main.go
5
+ env GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -ldflags=" -s -w" -o bin/lambda-golang-redirect ./functions/redirect/main.go
6
6
7
7
clean :
8
8
rm -rf ./bin
You can’t perform that action at this time.
0 commit comments