Skip to content

Go bindings

Go bindings #4

name: Go Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.21'
- name: Set up cargo
run: rustup update stable && rustup default stable
- name: Build Rust library
run: sh Scripts/build_go.sh
- name: Generate Go Bindings
run: sh Scripts/build_go_bindings.sh
- name: Get dependencies
run: |
go mod tidy
- name: Test Bindings
run: sh Scripts/test_bindings.sh