mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 21:05:35 +01:00
All examples pass with cargo xtask --target all
This commit is contained in:
parent
ceaf3613d3
commit
35c97b61c1
13 changed files with 28 additions and 21 deletions
|
|
@ -87,12 +87,14 @@ fn main() -> anyhow::Result<()> {
|
|||
let targets = [ARMV7M, ARMV6M];
|
||||
|
||||
let examples: Vec<_> = std::fs::read_dir("./examples")?
|
||||
.filter_map(|path| {
|
||||
path.map(|p| p.path().file_stem().unwrap().to_str().unwrap().to_string())
|
||||
.ok()
|
||||
})
|
||||
.filter_map(|p| p.ok())
|
||||
.map(|p| p.path())
|
||||
.filter(|p| p.display().to_string().ends_with(".rs"))
|
||||
.map(|path| path.file_stem().unwrap().to_str().unwrap().to_string())
|
||||
.collect();
|
||||
|
||||
println!("examples: {examples:?}");
|
||||
|
||||
let opts = Options::from_args();
|
||||
let target = &opts.target;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue