Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/device-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,22 @@ jobs:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Install nightly with rustfmt
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Install device-driver-cli from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: device-driver-cli
- name: Generate files
run: device-driver-cli --manifest device_${{ matrix.chip-rev }}.yaml --device-name Device -o ci_gen_${{matrix.chip-rev}}.rs
- name: Format generated file with nightly rustfmt
# The committed pregen files are formatted with nightly rustfmt (see
# rustfmt.toml unstable options). Format the freshly generated file
# the same way before diffing, otherwise this check perpetually
# conflicts with the `nightly / fmt` check.
run: rustup run nightly rustfmt --edition 2024 ci_gen_${{matrix.chip-rev}}.rs
- name: Check that the files are the exact same
uses: LouisBrunner/diff-action@v2.0.0
with:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ edition = "2024"
features = ["r5"]

[dependencies]
device-driver = { version = "1.0.3", default-features = false }
device-driver = { version = "1.0.9", default-features = false }
Comment thread
felipebalbi marked this conversation as resolved.
defmt = { version = "0.3", optional = true }

embedded-hal = "1.0.0"
Expand Down
Loading
Loading