@@ -21,44 +21,13 @@ jobs:
2121 toolchain : stable
2222
2323 # Rust Dependencies
24- - name : Cache Cargo installed binaries
25- uses : actions/cache@v4
26- id : cache-cargo
27- with :
28- path : ~/cargo-bin
29- key : rust-tools-20250106-001
30- - name : Install svd2rust
31- if : steps.cache-cargo.outputs.cache-hit != 'true'
32- run : cargo install svd2rust --version 0.28.0 --locked
33- - name : Install cargo-form
34- if : steps.cache-cargo.outputs.cache-hit != 'true'
35- run : cargo install form --version 0.8.0 --locked
36- - name : Install atdf2svd
37- if : steps.cache-cargo.outputs.cache-hit != 'true'
38- run : cargo install atdf2svd --version 0.5.0 --locked
39- - name : Install svdtools
40- if : steps.cache-cargo.outputs.cache-hit != 'true'
41- run : cargo install svdtools --version 0.4.0 --locked
42- - name : Copy tools to cache directory
43- if : steps.cache-cargo.outputs.cache-hit != 'true'
44- run : |
45- mkdir ~/cargo-bin
46- cp ~/.cargo/bin/svd2rust ~/cargo-bin
47- cp ~/.cargo/bin/form ~/cargo-bin
48- cp ~/.cargo/bin/atdf2svd ~/cargo-bin
49- cp ~/.cargo/bin/svdtools ~/cargo-bin
50- - name : Put new cargo binary directory into path
51- run : echo "$HOME/cargo-bin" >> $GITHUB_PATH
52-
5324 - name : Install Nightly Rust
5425 uses : actions-rust-lang/setup-rust-toolchain@v1
5526 with :
5627 toolchain : nightly-2023-08-08
5728 components : rustfmt
5829
5930 # Actual test run
60- - name : Generate chip description sources
61- run : make RUSTUP_TOOLCHAIN=nightly-2023-08-08
6231 - name : Test-compile the crate
6332 run : cargo check --all-features
6433
7342 with :
7443 name : avr-device
7544 path : |
76- svd/
45+ target/avr-atmega328p/debug/build/avr-device-*/out/ svd/
7746 target/package/avr-device-*.crate
7847 macros/target/package/avr-device-macros-*.crate
7948
9160 - name : Install AVR gcc, binutils, and libc
9261 run : sudo apt-get install -y avr-libc binutils-avr gcc-avr
9362 - name : Build ATmega328P example
94- run : cd examples/atmega328p && cargo build
95- - name : Check ATmega328P formatting
96- run : cd examples/atmega328p && cargo fmt --check
63+ run : cargo build --example atmega328p --features atmega328p,rt
0 commit comments