Skip to content

Commit

Permalink
ci: move rustup target add to script
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 4, 2021
1 parent a66fe72 commit 094b902
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 2 additions & 0 deletions ci/check-features.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 094b902

Please sign in to comment.