diff options
| author | datdenkikniet <jcdra1@gmail.com> | 2025-03-22 22:31:06 +0100 |
|---|---|---|
| committer | datdenkikniet <38322042+datdenkikniet@users.noreply.github.com> | 2025-03-23 09:57:48 +0000 |
| commit | cfcf21ffe47532083bda4d3d4b12bb6aa725da8a (patch) | |
| tree | d1012c5f673bdffe16cb182079f45dc33d59877a /xtask | |
| parent | 0f5ddeff8d6aaa57005bd069c0e1131ae176a486 (diff) | |
ci: Check at least one C3 target
Diffstat (limited to 'xtask')
| -rw-r--r-- | xtask/src/argument_parsing.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xtask/src/argument_parsing.rs b/xtask/src/argument_parsing.rs index 47c53a0..a9af170 100644 --- a/xtask/src/argument_parsing.rs +++ b/xtask/src/argument_parsing.rs @@ -138,7 +138,7 @@ impl TestMetadata { } } -#[derive(clap::ValueEnum, Copy, Clone, Default, Debug)] +#[derive(clap::ValueEnum, Copy, Clone, Default, Debug, PartialEq)] pub enum Backends { Thumbv6, #[default] @@ -193,7 +193,9 @@ impl Backends { #[allow(clippy::wrong_self_convention)] pub fn to_rtic_monotonics_features(&self, partial: bool) -> Option<&[&str]> { - if !self.is_arm() { + if self == &Self::RiscvEsp32C3 { + Some(&["esp32c3-systimer"]) + } else if !self.is_arm() { None } else if partial { Some(&[ |
