Skip to content

Commit

Permalink
Configure CI for new backends
Browse files Browse the repository at this point in the history
  • Loading branch information
romancardenas committed Jan 28, 2025
1 parent 9699c36 commit 5af69e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
matrix:
backend:
- riscv32-imc-clint
- riscv32-imac-clint
- riscv32-imc-mecall
toolchain:
- stable
steps:
Expand All @@ -175,13 +175,8 @@ jobs:
uses: Swatinem/rust-cache@v2

- name: Check the examples
if: ${{ matrix.backend == 'riscv32-imc-clint' }}
run: cargo xtask --platform hifive1 --backend ${{ matrix.backend }} --exampleexclude static example-check

- name: Check the examples
if: ${{ matrix.backend != 'riscv32-imc-clint' }}
run: cargo xtask --platform hifive1 --backend ${{ matrix.backend }} example-check

# Platform esp32c3: verify all examples, checks
checkexamplesesp32c3:
name: check examples (esp32c3)
Expand Down Expand Up @@ -341,7 +336,7 @@ jobs:
matrix:
backend:
- riscv32-imc-clint
- riscv32-imac-clint
- riscv32-imc-mecall
toolchain:
- stable
steps:
Expand Down Expand Up @@ -389,13 +384,8 @@ jobs:
which qemu-system-riscv32
- name: Run-pass tests
if: ${{ matrix.backend == 'riscv32-imc-clint' }}
run: cargo xtask --deny-warnings --platform hifive1 --backend ${{ matrix.backend }} --exampleexclude static qemu

- name: Run-pass tests
if: ${{ matrix.backend != 'riscv32-imc-clint' }}
run: cargo xtask --deny-warnings --platform hifive1 --backend ${{ matrix.backend }} qemu

# Platform esp32c3: verify the example output with run-pass tests
testexamplesesp32c3:
name: QEMU run (esp32c3)
Expand Down
9 changes: 2 additions & 7 deletions xtask/src/argument_parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,7 @@ impl Platforms {
let c = "-C".to_string();
match self {
Platforms::Esp32C3 => vec![c, "link-arg=-Tlinkall.x".to_string()],
Platforms::Hifive1 => vec![
c.clone(),
"link-arg=-Thifive1-link.x".to_string(),
c,
"portable_atomic_target_feature=\"zaamo\"".to_string(),
],
Platforms::Hifive1 => vec![c, "link-arg=-Thifive1-link.x".to_string()],
Platforms::Lm3s6965 => vec![c, "link-arg=-Tlink.x".to_string()],
Platforms::Nrf52840 => vec![
c.clone(),
Expand Down Expand Up @@ -315,7 +310,7 @@ impl Platforms {
_ => Err(()),
},
Platforms::Hifive1 => match backend.to_target() {
RISCV32IMC | RISCV32IMAC => Ok(None),
RISCV32IMC => Ok(None),
_ => Err(()),
},
Platforms::Lm3s6965 => match backend.to_target() {
Expand Down

0 comments on commit 5af69e0

Please sign in to comment.