Skip to content

Merge pull request #1067 from qiboteam/rust-u32 #951

Merge pull request #1067 from qiboteam/rust-u32

Merge pull request #1067 from qiboteam/rust-u32 #951

Workflow file for this run

# Test Qibolab Rust API
name: Rust API
on:
push:
workflow_dispatch:
jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Prepare virtual environment
run: |
pip install .
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Check and lint
working-directory: crate
run: |
cargo check
cargo clippy --all-targets
- name: Build & run example
working-directory: crate
run: |
cargo run --example example