Skip to content

Go bindings tests CI #886

Go bindings tests CI

Go bindings tests CI #886

Workflow file for this run

name: Go bindings tests CI
on:
push:
branches: [ "main" ]
pull_request:
merge_group:
branches: [ "main" ]
jobs:
golang-bindings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- name: get TCL
run: sudo apt-get install -y tcl8.6-dev
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build crates
run: cargo build
- name: Run Go bindings tests
working-directory: bindings/go
run: LD_LIBRARY_PATH=../../target/debug go test