mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-16 12:55:23 +01:00
ci: Check at least one C3 target
This commit is contained in:
parent
5690eeb597
commit
75ca569699
2 changed files with 8 additions and 3 deletions
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
|
@ -34,7 +34,6 @@ jobs:
|
|||
run: cargo xtask --verbose fmt -c
|
||||
|
||||
# Compilation check
|
||||
# TODO: check esp32-c3
|
||||
check:
|
||||
name: check
|
||||
runs-on: ubuntu-22.04
|
||||
|
|
@ -64,6 +63,10 @@ jobs:
|
|||
- backend: riscv32-imc-mecall
|
||||
platform: hifive1
|
||||
rustup-target: riscv32imc-unknown-none-elf
|
||||
|
||||
- backend: riscv-esp32-c3
|
||||
platform: esp32-c3
|
||||
rustup-target: riscv32imc-unknown-none-elf
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
|
|
|||
|
|
@ -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(&[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue