88
99env :
1010 CARGO_TERM_COLOR : always
11+ RUSTFLAGS : " -C link-arg=-Thifive1-link.x --cfg portable_atomic_target_feature=\" zaamo\" "
1112
1213jobs :
1314 # On Linux, we check that the crate builds and links for all the toolchains and targets.
1415 ci-linux :
1516 strategy :
1617 matrix :
17- # All generated code should be running on stable now, MRSV is 1.75 .0
18+ # All generated code should be running on stable now, MRSV is 1.76 .0
1819 toolchain :
1920 - stable
2021 - nightly
21- - 1.75 .0
22+ - 1.76 .0
2223 cargo_flags :
2324 - " clint-backend"
25+ - " mecall-backend"
2426 include :
2527 # Nightly is only for reference and allowed to fail
2628 - rust : nightly
@@ -34,10 +36,14 @@ jobs:
3436 toolchain : ${{ matrix.toolchain }}
3537 targets : riscv32i-unknown-none-elf,riscv32imc-unknown-none-elf,riscv32imac-unknown-none-elf,riscv64gc-unknown-none-elf
3638 - name : Build riscv32i-unknown-none-elf
37- run : RUSTFLAGS="-C link-arg=-Thifive1-link.x" cargo build --workspace --target riscv32i-unknown-none-elf --features=${{ matrix.cargo_flags }}
39+ run : RUSTFLAGS=$RUSTFLAGS cargo build --target riscv32i-unknown-none-elf --features=${{ matrix.cargo_flags }}
3840 - name : Build riscv32imc-unknown-none-elf
39- run : RUSTFLAGS="-C link-arg=-Thifive1-link.x" cargo build --workspace --target riscv32imc-unknown-none-elf --features=${{ matrix.cargo_flags }}
41+ run : RUSTFLAGS=$RUSTFLAGS cargo build --target riscv32imc-unknown-none-elf --features=${{ matrix.cargo_flags }}
4042 - name : Build riscv32imac-unknown-none-elf
41- run : RUSTFLAGS="-C link-arg=-Thifive1-link.x" cargo build --target riscv32imac-unknown-none-elf --workspace --features=${{ matrix.cargo_flags }}
43+ run : RUSTFLAGS=$RUSTFLAGS cargo build --target riscv32imac-unknown-none-elf --features=${{ matrix.cargo_flags }}
4244 - name : Build riscv64gc-unknown-none-elf (no example)
4345 run : cargo build --target riscv64gc-unknown-none-elf --features=${{ matrix.cargo_flags }}
46+ - name : Build CLINT backend examples
47+ run : RUSTFLAGS=$RUSTFLAGS cargo build --package tests-clint
48+ - name : Build MECALL backend examples
49+ run : RUSTFLAGS=$RUSTFLAGS cargo build --package tests-mecall
0 commit comments