Added CGO_ENABLED for tests
This commit is contained in:
parent
587a7db470
commit
8e26600493
@ -10,7 +10,7 @@ go_build:
|
|||||||
- mkdir -p .cache/go
|
- mkdir -p .cache/go
|
||||||
- export GOCACHE="$CI_PROJECT_DIR/.cache/cache"
|
- export GOCACHE="$CI_PROJECT_DIR/.cache/cache"
|
||||||
- export GOPATH="$CI_PROJECT_DIR/.cache/go"
|
- export GOPATH="$CI_PROJECT_DIR/.cache/go"
|
||||||
- go test -race ./...
|
- CGO_ENABLED=1 go test -race ./...
|
||||||
- mkdir -p build || true
|
- mkdir -p build || true
|
||||||
- go env
|
- go env
|
||||||
- GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o build/${CI_PROJECT_NAME}-amd64 ./cmd/wg-quick
|
- GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o build/${CI_PROJECT_NAME}-amd64 ./cmd/wg-quick
|
||||||
|
Loading…
Reference in New Issue
Block a user