Test a full `no-std` build in the `no-std-check` crate in CI
[rust-lightning] / .github / workflows / build.yml
index a48ecc743b3e2f192fb0dbad54a85a399cc85e1f..799d22a64667ed3fd8de55e4fe4a5097da7e2dba 100644 (file)
@@ -128,7 +128,13 @@ jobs:
           # check no-std compatibility across dependencies
           cd no-std-check
           cargo check --verbose --color always
-          cd ..
+      - name: Build no-std-check on Rust ${{ matrix.toolchain }} for ARM Embedded
+        if: "matrix.build-no-std && matrix.platform == 'ubuntu-latest'"
+        run: |
+          cd no-std-check
+          rustup target add thumbv7m-none-eabi
+          sudo apt-get -y install gcc-arm-none-eabi
+          cargo build --target=thumbv7m-none-eabi
       - name: Test on no-std builds Rust ${{ matrix.toolchain }} and full code-linking for coverage generation
         if: "matrix.build-no-std && matrix.coverage"
         run: |