Run Go tests with portable blst (#237)

This commit is contained in:
Justin Traglia 2023-03-22 05:27:10 -05:00 committed by GitHub
parent 577d146c0a
commit c3c150f31e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -22,11 +22,11 @@ jobs:
- name: Test
run: |
cd bindings/go
go test
CGO_CFLAGS="-O2 -D__BLST_PORTABLE__" go test
- name: Benchmark
run: |
cd bindings/go
go test -bench=Benchmark
CGO_CFLAGS="-O2 -D__BLST_PORTABLE__" go test -bench=Benchmark
- name: Check headers
run: |
cmp blst/bindings/blst.h bindings/go/blst_headers/blst.h

2
go.mod
View File

@ -5,10 +5,10 @@ go 1.19
require (
github.com/stretchr/testify v1.8.1
github.com/supranational/blst v0.3.11-0.20230124161941-ca03e11a3ff2
gopkg.in/yaml.v3 v3.0.1
)
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)