mirror of
https://github.com/status-im/c-kzg-4844.git
synced 2025-01-11 18:54:11 +00:00
Test Go bindings on all platforms (#332)
* Test Go bindings on all platforms * Update setup-go action * Specify flags in the env section
This commit is contained in:
parent
de151d8fd7
commit
f62c9738b1
26
.github/workflows/go-tests.yml
vendored
26
.github/workflows/go-tests.yml
vendored
@ -9,24 +9,32 @@ on:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os:
|
||||
- ubuntu-latest
|
||||
- windows-latest
|
||||
- macos-latest
|
||||
steps:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v2
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ^1.19
|
||||
go-version: stable
|
||||
id: go
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Test
|
||||
run: |
|
||||
cd bindings/go
|
||||
CGO_CFLAGS="-O2 -D__BLST_PORTABLE__" go test
|
||||
run: go test
|
||||
working-directory: bindings/go
|
||||
env:
|
||||
CGO_CFLAGS: "-O2 -D__BLST_PORTABLE__"
|
||||
- name: Benchmark
|
||||
run: |
|
||||
cd bindings/go
|
||||
CGO_CFLAGS="-O2 -D__BLST_PORTABLE__" go test -bench=Benchmark
|
||||
run: go test -bench=Benchmark
|
||||
working-directory: bindings/go
|
||||
env:
|
||||
CGO_CFLAGS: "-O2 -D__BLST_PORTABLE__"
|
||||
- name: Check headers
|
||||
run: |
|
||||
cmp blst/bindings/blst.h bindings/go/blst_headers/blst.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user