2023-03-13 10:42:12 +00:00
|
|
|
name: Go
|
2023-01-26 17:04:24 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-03-13 10:42:12 +00:00
|
|
|
tests:
|
2023-01-26 17:04:24 +00:00
|
|
|
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
|
2023-03-13 10:42:12 +00:00
|
|
|
go test
|
|
|
|
- name: Benchmark
|
|
|
|
run: |
|
|
|
|
cd bindings/go
|
|
|
|
go test -bench=Benchmark
|
2023-01-26 17:04:24 +00:00
|
|
|
- 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
|