-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.23 KB
/
ci.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
test:
strategy:
matrix:
rust:
- 1.80.1
- stable
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.2.2
- name: Setup Rust toolchains
run: |
rustup toolchain update "${{ matrix.rust }}" --no-self-update
rustup default "${{ matrix.rust }}"
rustup target add thumbv6m-none-eabi
- run: cargo check
- run: cargo test --target "$(rustc -vV | grep host | cut -d' ' -f2)"
fmt:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.2.2
- name: Setup Rust toolchains
run: |
rustup toolchain update stable --no-self-update
rustup default stable
rustup target add thumbv6m-none-eabi
rustup component add clippy rustfmt
- run: cargo fmt --check
clippy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4.2.2
- name: Setup Rust toolchains
run: |
rustup toolchain update stable --no-self-update
rustup default stable
rustup target add thumbv6m-none-eabi
rustup component add clippy rustfmt
- run: cargo clippy -- -D warnings