Skip to content

chore(ci): add back nim build for windows #107

chore(ci): add back nim build for windows

chore(ci): add back nim build for windows #107

name: Test Go bindings
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
- name: Setup Zig
uses: goto-bus-stop/setup-zig@v2
- name: Add zigbuild
run: cargo install cargo-zigbuild
- name: Run compile script
run: ./scripts/compile.sh golang
shell: bash
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Run Go tests
run: go test ./...
working-directory: bindings/golang