split no-std checks
we don't want to compile the stuff inside firmware to RISC-V because it depends on the cortex-m
crate
we do want to compile the defmt crate for all no-std targets
@@ -60,14 +60,18 @@ jobs:
target: ${{ env.NO_STD_TARGET }}
- name: Install Rust targets
run: rustup +stable target add ${{ env.NO_STD_TARGET }} ${{ env.NO_STD_CHECK_TARGETS }}
- - name: Build defmt & dependent crates for no_std targets
- working-directory: firmware
- # some crates will not compile to targets with no CAS support
+ - name: Build defmt crates for no_std targets
run: |
for target in $NO_STD_CHECK_TARGETS; do
- cargo check --target $target --workspace --exclude defmt-itm --exclude firmware
+ cargo check --target $target -p defmt
+ cargo check --target $target -p defmt --features alloc
done
- cargo check --target thumbv7em-none-eabi -p defmt-itm -p firmware
+ - name: Build defmt dependent crates for cortex-m targets
+ working-directory: firmware
+ # some crates will not compile to targets with no CAS support
+ run: |
+ cargo check --target thumbv6m-none-eabi --workspace --exclude defmt-itm --exclude firmware
+ cargo check --target thumbv7m-none-eabi --workspace
- name: Build panic-probe with different features
working-directory: firmware/panic-probe
run: |
