diff --git a/.github/workflows/golang-test-linux.yml b/.github/workflows/golang-test-linux.yml index dbb31ccdb..8d805f46c 100644 --- a/.github/workflows/golang-test-linux.yml +++ b/.github/workflows/golang-test-linux.yml @@ -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 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index f381dd960..074a5dc55 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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