From 87488ec1f6de0634c31b61939c7eea8959f74fa9 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 3 Mar 2021 20:37:51 +0000 Subject: [PATCH] CI: Add no-std build check --- .github/workflows/ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2566161..dc5ba6c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,3 +188,26 @@ jobs: with: command: fmt args: -- --check + + no-std: + name: Check no-std target ${{ matrix.target }} + runs-on: ubuntu-latest + strategy: + matrix: + target: + - thumbv6m-none-eabi + - wasm32-unknown-unknown + - wasm32-wasi + + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - run: rustup target add ${{ matrix.target }} + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose --target ${{ matrix.target }} --no-default-features