From d3508b226a80a683ec81bb2d6549654c958934b9 Mon Sep 17 00:00:00 2001 From: refcell Date: Fri, 30 Aug 2024 18:08:57 -0400 Subject: [PATCH] feat: workflow to validate no_std compatibility --- .github/workflows/no_std.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/no_std.yaml diff --git a/.github/workflows/no_std.yaml b/.github/workflows/no_std.yaml new file mode 100644 index 0000000..728a356 --- /dev/null +++ b/.github/workflows/no_std.yaml @@ -0,0 +1,25 @@ +name: no_std + +on: + push: + branches: [main] + pull_request: + +env: + CARGO_TERM_COLOR: always + +jobs: + check-no-std: + name: check no_std ${{ matrix.features }} + runs-on: ubuntu-latest + timeout-minutes: 30 + strategy: + fail-fast: false + matrix: + crate: ["superchain", "superchain-primitives", "superchain-registry"] + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + targets: riscv32imac-unknown-none-elf + - run: cargo check --target riscv32imac-unknown-none-elf --no-default-features -p ${{ matrix.crate }}