From d52a96814ce59e755159c0e30a3d9767b7c432e8 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 15 Jan 2023 23:28:18 +0900 Subject: [PATCH] Update CI config --- .github/workflows/ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9baf4cf..24ab7f8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,15 +33,13 @@ jobs: - uses: actions/checkout@v3 - name: Install Rust run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} - - run: cargo build --all --all-features --all-targets - - name: Run cargo check (without dev-dependencies to catch missing feature flags) - if: startsWith(matrix.rust, 'nightly') - run: cargo check -Z features=dev_dep - - run: cargo test + - run: rustup target add thumbv7m-none-eabi - name: Install cargo-hack uses: taiki-e/install-action@cargo-hack - - run: rustup target add thumbv7m-none-eabi - - run: cargo hack build --target thumbv7m-none-eabi --no-default-features --no-dev-deps + - run: cargo build --all --all-features --all-targets + - run: cargo hack build --feature-powerset --no-dev-deps + - run: cargo hack build --feature-powerset --no-dev-deps --target thumbv7m-none-eabi + - run: cargo test msrv: runs-on: ubuntu-latest