From ebea5476897d0de931a01413893013e81c0b318e Mon Sep 17 00:00:00 2001 From: Conrado Gouvea Date: Fri, 6 May 2022 11:58:34 -0300 Subject: [PATCH] ci: test no_std build --- .github/workflows/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 48e179e..18d5160 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,3 +18,19 @@ jobs: with: command: test args: --all-features + build_no_std: + name: build with no_std + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.0.2 + - uses: actions-rs/toolchain@v1.0.7 + with: + toolchain: stable + override: true + # This does not support std, so we use to test if no_std works + target: thumbv6m-none-eabi + - uses: actions-rs/cargo@v1.0.3 + with: + command: build + # Disables std feature + args: --no-default-features --target thumbv6m-none-eabi