Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Go bindings on all platforms #332

Merged
merged 3 commits into from
Aug 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading