Try CI with --frozen #151
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
on: | |
push: | |
branches: ['main'] | |
pull_request: | |
branches: ['main'] | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: -D warnings | |
jobs: | |
clippy: | |
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. | |
device: [camera, telescope, focuser] | |
include: | |
# Also make sure that maximum configuration works as expected. | |
- network: client,server | |
device: all-devices | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Cache Rust dependencies | |
uses: Swatinem/rust-cache@v2 | |
- name: Clippy check | |
run: cargo clippy --frozen --all --all-targets --features ${{ matrix.network }},${{ matrix.device }} |