From 3b795c801defd2a9b6df139a83d27140f766a495 Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Mon, 26 Feb 2024 11:10:24 +0100 Subject: [PATCH] Add `no_std` CI run --- .github/workflows/rust.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 72f3d12..d191218 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,6 +25,20 @@ jobs: run: cargo test --verbose --all-features --all - name: Build Examples run: cargo build --examples --all-features --all + no_std_build: + name: no_std Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - run: rustup update + - name: Build + run: cargo build --verbose --no-default-features + - name: Build + run: cargo build --verbose --no-default-features --features=alloc + - name: Run tests + run: cargo test --verbose --no-default-features + - name: Run tests as no_std with alloc + run: cargo test --verbose --no-default-features --features=alloc clippy: name: Clippy runs-on: ubuntu-latest