Skip to content

Use matrix for testing #146

Use matrix for testing

Use matrix for testing #146

Workflow file for this run

name: Rust
on:
push:
branches: ['main']
pull_request:
branches: ['main']
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
network: [client, server]
# Camera and telescope have some special logic; other devices don't so we pick focuser as a random representative.
# Also test all devices together.
device: [all-devices, camera, telescope, focuser]
steps:
- uses: actions/checkout@v4
- uses: taiki-e/install-action@cargo-no-dev-deps
- name: Clippy check
run: cargo no-dev-deps clippy --all-targets --features ${{ matrix.network }},${{ matrix.device }}