ci: Check at least one C3 target

This commit is contained in:
datdenkikniet 2025-03-22 22:31:06 +01:00
parent 5690eeb597
commit 75ca569699
2 changed files with 8 additions and 3 deletions

View file

@ -34,7 +34,6 @@ jobs:
run: cargo xtask --verbose fmt -c run: cargo xtask --verbose fmt -c
# Compilation check # Compilation check
# TODO: check esp32-c3
check: check:
name: check name: check
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -64,6 +63,10 @@ jobs:
- backend: riscv32-imc-mecall - backend: riscv32-imc-mecall
platform: hifive1 platform: hifive1
rustup-target: riscv32imc-unknown-none-elf rustup-target: riscv32imc-unknown-none-elf
- backend: riscv-esp32-c3
platform: esp32-c3
rustup-target: riscv32imc-unknown-none-elf
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

View file

@ -138,7 +138,7 @@ impl TestMetadata {
} }
} }
#[derive(clap::ValueEnum, Copy, Clone, Default, Debug)] #[derive(clap::ValueEnum, Copy, Clone, Default, Debug, PartialEq)]
pub enum Backends { pub enum Backends {
Thumbv6, Thumbv6,
#[default] #[default]
@ -193,7 +193,9 @@ impl Backends {
#[allow(clippy::wrong_self_convention)] #[allow(clippy::wrong_self_convention)]
pub fn to_rtic_monotonics_features(&self, partial: bool) -> Option<&[&str]> { 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 None
} else if partial { } else if partial {
Some(&[ Some(&[