Debian Codegraph @

.github/workflows/rust.yml

raw symbols SCIP
1 name: Rust
2
3 on:
4 push:
5 branches: [ main ]
6 pull_request:
7 branches: [ main ]
8
9 env:
10 CARGO_TERM_COLOR: always
11
12 jobs:
13 build:
14
15 runs-on: ubuntu-latest
16
17 steps:
18 - uses: actions/checkout@v2
19 - uses: actions/cache@v4
20 with:
21 path: |
22 ~/.rustup/toolchains/stable-*
23 ~/.cargo/registry
24 ~/.cargo/git
25 target
26 key: ${{ runner.os }}-stable-cargo-${{ hashFiles('**/Cargo.lock') }}
27 - name: Run clippy
28 run: cargo clippy --all-features --verbose
29 - name: Build
30 run: cargo build --all-features --verbose
31 - name: Run tests
32 run: cargo test --all-features --verbose
33 - name: Test no_std support
34 run: |
35 rustup target add thumbv6m-none-eabi
36 cargo build --verbose --release --no-default-features --target thumbv6m-none-eabi