Fix Fuzzing (#10798)

This commit is contained in:
Nishant Das 2022-06-01 21:15:50 +08:00 committed by GitHub
parent 95c140b512
commit 2cc62cdf40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View File

@ -89,10 +89,10 @@ jobs:
# Use blst tag to allow go and bazel builds for blst.
run: go build -v ./...
# fuzz and blst_disabled leverage go tag based stubs at compile time.
# Building with these tags should be checked and enforced at pre-submit.
- name: Build for fuzzing
run: go build -tags=fuzz,blst_disabled ./...
# 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
# Tests run via Bazel for now...
# - name: Test

View File

@ -1,5 +1,5 @@
//go:build blst_disabled || fuzz
// +build blst_disabled fuzz
//go:build blst_disabled
// +build blst_disabled
package blst

View File

@ -2,4 +2,3 @@ base:
language: go
build_tags:
- fuzz
- blst_disabled