From 54624569bf5ba3630f894162e772b9eb79245604 Mon Sep 17 00:00:00 2001 From: Nishant Das Date: Tue, 14 Jun 2022 21:12:28 +0800 Subject: [PATCH] Fix Fuzzing Failures in Our CI (#10875) Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> --- .github/workflows/go.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index b415f0414..573961f29 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -87,11 +87,14 @@ jobs: - name: Build # Use blst tag to allow go and bazel builds for blst. run: go build -v ./... - + env: + CGO_CFLAGS: "-O -D__BLST_PORTABLE__" # fuzz leverage go tag based stubs at compile time. # Building and testing with these tags should be checked and enforced at pre-submit. - name: Test for fuzzing run: go test -tags=fuzz,develop ./... -test.run=^Fuzz + env: + CGO_CFLAGS: "-O -D__BLST_PORTABLE__" # Tests run via Bazel for now... # - name: Test