c-kzg-4844/.github/workflows/go-tests.yml

34 lines
774 B
YAML

name: Go
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ^1.19
id: go
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Test
run: |
cd bindings/go
CGO_CFLAGS="-O2 -D__BLST_PORTABLE__" go test
- name: Benchmark
run: |
cd bindings/go
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
cmp blst/bindings/blst_aux.h bindings/go/blst_headers/blst_aux.h