@@ -15,36 +15,22 @@ jobs:
1515 style :
1616 runs-on : ubuntu-latest
1717 steps :
18- - uses : actions/checkout@v2
19- - uses : actions-rs/toolchain@v1
20- with :
21- toolchain : stable
22- target : thumbv7em-none-eabihf
23- override : true
24- - name : cargo fmt --check
25- uses : actions-rs/cargo@v1
26- with :
27- command : fmt
28- args : --all -- --check
29- - uses : actions-rs/clippy-check@v1
30- with :
31- token : ${{ secrets.GITHUB_TOKEN }}
32- - name : cargo check
33- uses : actions-rs/cargo@v1
34- with :
35- command : check
36- args : --verbose
37-
18+ - uses : actions/checkout@v5
19+ - uses : dtolnay/rust-toolchain@stable
20+ with :
21+ targets : thumbv7em-none-eabihf
22+ components : clippy,rustfmt
23+ - run : cargo fmt --all -- --check
24+ - run : cargo clippy
25+ - run : cargo check --all --verbose
3826 - uses : actions/setup-python@v1
3927 with :
4028 python-version : 3.12
41- - name : Install Python Dependencies
42- run : |
29+ - run : |
4330 python -m pip install --upgrade pip
4431 pip install py/
4532 pip install pylint
46- - name : Run Pylint
47- run : |
33+ - run : |
4834 pylint py/stabilizer
4935
5036 compile :
@@ -63,68 +49,51 @@ jobs:
6349 features : nightly
6450 continue-on-error : true
6551 steps :
66- - uses : actions/checkout@v2
67- - uses : actions-rs/ toolchain@v1
52+ - uses : actions/checkout@v5
53+ - uses : dtolnay/rust- toolchain@master
6854 with :
6955 toolchain : ${{ matrix.toolchain }}
70- target : thumbv7em-none-eabihf
71- override : true
72- - uses : actions-rs/cargo@v1
73- with :
74- command : build
75- args : --release --features "${{ matrix.features }}"
56+ targets : thumbv7em-none-eabihf
57+ - run : cargo build --release --features "${{ matrix.features }}"
7658
77- doc :
59+ schema :
7860 runs-on : ubuntu-latest
7961 steps :
80- - uses : actions/checkout@v2
62+ - uses : actions/checkout@v5
63+ - uses : dtolnay/rust-toolchain@stable
64+ # https://github.com/rust-lang/cargo/issues/13051
65+ - run : cargo run --bin dual-iir --target x86_64-unknown-linux-gnu
66+ - run : cargo run --bin lockin --target x86_64-unknown-linux-gnu
67+ - run : cargo run --bin dds --target x86_64-unknown-linux-gnu
8168
82- - uses : actions-rs/toolchain@v1
69+ doc :
70+ runs-on : ubuntu-latest
71+ steps :
72+ - uses : actions/checkout@v5
73+ - uses : dtolnay/rust-toolchain@stable
8374 with :
84- toolchain : stable
85- target : thumbv7em-none-eabihf
86- override : true
87-
75+ targets : thumbv7em-none-eabihf
8876 - uses : Swatinem/rust-cache@v1
89-
9077 - uses : peaceiris/actions-mdbook@v1
9178 with :
9279 mdbook-version : ' 0.4.12'
93-
94- - name : Install Deadlinks
95- uses : actions-rs/cargo@v1
96- with :
97- command : install
98- args : |
99- cargo-deadlinks
100-
101- - name : Install Linkcheck
102- uses : actions-rs/cargo@v1
103- with :
104- command : install
105- args : mdbook-linkcheck
106-
107- - name : cargo doc
108- uses : actions-rs/cargo@v1
109- with :
110- command : doc
111- args : --no-deps -p miniconf -p idsp -p ad9959 -p stabilizer
112-
113- - name : cargo deadlinks
114- uses : actions-rs/cargo@v1
80+ - run : cargo install cargo-deadlinks
81+ - run : cargo install mdbook-linkcheck
82+ - run : |
83+ cargo doc --no-deps \
84+ -p miniconf -p idsp \
85+ -p ad9959 -p ad9912 -p stream -p platform -p signal_generator \
86+ -p encoded_pin -p serial_settings -p urukul \
87+ -p stabilizer
88+ # We intentionally ignore fragments, as RTIC may generate fragments for various
89+ # auto-generated code.
90+ - run : cargo deadlinks --dir target/thumbv7em-none-eabihf/doc --ignore-fragments --check-intra-doc-links
11591 continue-on-error : true
116- with :
117- command : deadlinks
118- # We intentionally ignore fragments, as RTIC may generate fragments for various
119- # auto-generated code.
120- args : --dir target/thumbv7em-none-eabihf/doc --ignore-fragments --check-intra-doc-links
121-
122- - name : Test Book
123- working-directory : book
92+ - name : build
12493 run : |
125- # Install depedencies at our cache location
12694 mv ../target/thumbv7em-none-eabihf/doc src/firmware
12795 mdbook build
96+ working-directory : book
12897
12998 hitl-trigger :
13099 runs-on : ubuntu-latest
0 commit comments