diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 813866ea..ec72dc6e 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -61,3 +61,17 @@ jobs: go run gotest.tools/gotestsum@latest -- \ -tags=e2e ./e2e/... \ -parallel ${{ steps.cpu.outputs.cores }} + e2e_cgo_disabled: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: ${{ env.GO_VERSION }} + - name: Run CGO-disabled e2e smoke test + env: + CGO_ENABLED: "0" + run: go run gotest.tools/gotestsum@latest -- -count=1 -tags=e2e ./e2e/... -run '^TestConnectivity$' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 470c80d6..cedf3f93 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,6 +8,9 @@ permissions: contents: write packages: write +env: + CGO_ENABLED: "0" + jobs: release-unix: name: Release Go Binary (Unix) @@ -49,4 +52,4 @@ jobs: goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} extra_files: 'wintun/bin/${{ matrix.goarch }}/wintun.dll' - asset_name: nylon-${{ matrix.goos }}-${{ matrix.goarch }} \ No newline at end of file + asset_name: nylon-${{ matrix.goos }}-${{ matrix.goarch }}