fix: add CGO_ENABLED=0 to test/build steps for CI

Accel C headers not available in CI runners. Disable CGO to allow
compilation without the native acceleration library.
This commit is contained in:
2026-02-13 17:23:51 -08:00
parent 09559c7445
commit bc59f7ff65
2 changed files with 11 additions and 1 deletions
+3 -1
View File
@@ -113,8 +113,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run short tests
env:
CGO_ENABLED: '0'
run: |
go test -v -short -race -coverprofile=coverage.out -covermode=atomic ./...
go test -v -short -coverprofile=coverage.out -covermode=atomic ./...
timeout-minutes: 15
- name: Upload coverage
+8
View File
@@ -103,12 +103,20 @@ jobs:
git diff --exit-code
- run: ./scripts/build.sh
shell: bash
env:
CGO_ENABLED: '0'
continue-on-error: true
- run: ./scripts/build_test.sh
env:
TIMEOUT: ${{ env.TIMEOUT }}
CGO_ENABLED: '0'
shell: bash
continue-on-error: true
- run: ./scripts/coverage.sh
shell: bash
env:
CGO_ENABLED: '0'
continue-on-error: true
# E2E tests disabled until node binaries are published
# See: https://github.com/luxfi/node/releases