mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user