diff --git a/.github/workflows/go-tests.yml b/.github/workflows/go-tests.yml index 41260a2ed..5e797d79c 100644 --- a/.github/workflows/go-tests.yml +++ b/.github/workflows/go-tests.yml @@ -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