-
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 861 Bytes
/
rust.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 --locked --all --all-targets --features ${{ matrix.network }},${{ matrix.device }}