From afa39ab5d548a9aa4911a49f706d2cdb063b28a4 Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Wed, 24 Jul 2024 20:17:01 -0700 Subject: [PATCH] CI: Expand `no_std` build. --- .github/workflows/ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d5ca2a4d2..bb629e8cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -458,13 +458,15 @@ jobs: rustup toolchain install stable --profile minimal rustup target add thumbv7em-none-eabihf - - name: no_std build + - name: no_std lint run: | - cargo check --no-default-features -p all-is-cubes --target thumbv7em-none-eabihf + cargo clippy --no-default-features -p all-is-cubes -p all-is-cubes-render -p all-is-cubes-content --target thumbv7em-none-eabihf - - name: no_std lint + - name: no_std build + # This is `cargo build`, not `cargo check`, because `cargo check` won't detect problems like + # use of undefined linker symbols. Not sure if that matters. run: | - cargo clippy --no-default-features -p all-is-cubes --target thumbv7em-none-eabihf + cargo build --no-default-features -p all-is-cubes -p all-is-cubes-render -p all-is-cubes-content --target thumbv7em-none-eabihf fuzz: # Don't spend time on fuzzing if the build failed indicating the code is bad other ways