mirror of
https://github.com/luxfi/netrunner.git
synced 2026-07-27 00:04:23 +00:00
add comment for CGO flags setting
This commit is contained in:
@@ -41,7 +41,7 @@ jobs:
|
||||
go-version: 1.18
|
||||
- run: go test -v -timeout 10m -race ./...
|
||||
env:
|
||||
CGO_CFLAGS: "-O -D__BLST_PORTABLE__"
|
||||
CGO_CFLAGS: "-O -D__BLST_PORTABLE__" # Set the CGO flags to use the portable version of BLST
|
||||
e2e_test:
|
||||
name: e2e tests
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ builds:
|
||||
- arm64
|
||||
env:
|
||||
- CGO_ENABLED=1
|
||||
- CGO_CFLAGS=-O -D__BLST_PORTABLE__
|
||||
- CGO_CFLAGS=-O -D__BLST_PORTABLE__ # Set the CGO flags to use the portable version of BLST
|
||||
overrides:
|
||||
- goos: linux
|
||||
goarch: arm64
|
||||
|
||||
@@ -15,5 +15,10 @@ else
|
||||
OUTPUT=$1
|
||||
fi
|
||||
|
||||
# Set the CGO flags to use the portable version of BLST
|
||||
#
|
||||
# We use "export" here instead of just setting a bash variable because we need
|
||||
# to pass this flag to all child processes spawned by the shell.
|
||||
export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
|
||||
|
||||
go build -v -ldflags="-X 'github.com/ava-labs/avalanche-network-runner/cmd.Version=$VERSION'" -o $OUTPUT/avalanche-network-runner
|
||||
|
||||
@@ -131,10 +131,15 @@ fi
|
||||
echo "building runner"
|
||||
./scripts/build.sh
|
||||
|
||||
# Set the CGO flags to use the portable version of BLST
|
||||
#
|
||||
# We use "export" here instead of just setting a bash variable because we need
|
||||
# to pass this flag to all child processes spawned by the shell.
|
||||
export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
|
||||
|
||||
echo "building e2e.test"
|
||||
# to install the ginkgo binary (required for test build and run)
|
||||
go install -v github.com/onsi/ginkgo/v2/ginkgo@v2.1.3
|
||||
export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
|
||||
ACK_GINKGO_RC=true ginkgo build ./tests/e2e
|
||||
./tests/e2e/e2e.test --help
|
||||
|
||||
|
||||
Reference in New Issue
Block a user