diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89a651798..26774656f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,11 +73,6 @@ jobs: - uses: actions/checkout@v2 - name: Install Rust run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} - - name: Add targets - if: matrix.rust == 'nightly' - run: | - rustup target add thumbv7m-none-eabi - rustup target add thumbv6m-none-eabi - name: Check features run: ./ci/check-features.sh diff --git a/ci/check-features.sh b/ci/check-features.sh index fa19a1d0e..b1d58870e 100755 --- a/ci/check-features.sh +++ b/ci/check-features.sh @@ -19,6 +19,8 @@ else cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks # Check for no_std environment. + rustup target add thumbv7m-none-eabi + rustup target add thumbv6m-none-eabi cargo hack check --all --feature-powerset --no-dev-deps --exclude benchmarks --target thumbv7m-none-eabi --skip std,default # * `--features nightly` is required for enable `cfg_target_has_atomic`. # * `--ignore-unknown-features` - some crates doesn't have 'nightly' feature