CGO_ENABLED=1 in tests

This commit is contained in:
braginini
2022-12-27 12:38:02 +01:00
parent 6bc2fb2d74
commit 7e0237d2cb
2 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ jobs:
run: go mod tidy
- name: Test
run: GOARCH=${{ matrix.arch }} go test -exec 'sudo --preserve-env=CI' -timeout 5m -p 1 ./...
run: CGO_ENABLED=1 GOARCH=${{ matrix.arch }} go test -exec 'sudo --preserve-env=CI' -timeout 5m -p 1 ./...
test_client_on_docker:
runs-on: ubuntu-latest

View File

@@ -3,7 +3,7 @@ builds:
- id: netbird
dir: client
binary: netbird
env: [CGO_ENABLED=1]
env: [CGO_ENABLED=0]
goos:
- linux
- darwin
@@ -32,7 +32,7 @@ builds:
- id: netbird-mgmt
dir: management
env: [CGO_ENABLED=1]
env: [CGO_ENABLED=0]
binary: netbird-mgmt
goos:
- linux
@@ -46,7 +46,7 @@ builds:
- id: netbird-signal
dir: signal
env: [CGO_ENABLED=1]
env: [CGO_ENABLED=0]
binary: netbird-signal
goos:
- linux