Skip to content

Commit

Permalink
Use setup-cross-toolchain-action instead of cross
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Mar 16, 2022
1 parent 75de7a4 commit b673a3d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,24 +44,23 @@ jobs:
- run: cargo test --workspace --all-features --release

cross:
name: cross test --target ${{ matrix.target }}
name: cargo test --target ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
target:
- i686-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- i686-unknown-linux-gnu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
run: rustup update nightly && rustup default nightly
- name: Install cross
uses: taiki-e/install-action@cross
- run: cross test --target ${{ matrix.target }} --workspace --all-features
- run: cross test --target ${{ matrix.target }} --workspace --all-features --release
# TODO: https://github.com/rust-lang/futures-rs/issues/2451
if: matrix.target != 'aarch64-unknown-linux-gnu'
- uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
- run: cargo test --target ${{ matrix.target }} --workspace --all-features $DOCTEST_XCOMPILE
- run: cargo test --target ${{ matrix.target }} --workspace --all-features --release $DOCTEST_XCOMPILE

core-msrv:
name: cargo +${{ matrix.rust }} build (futures-{core, io, sink})
Expand Down

0 comments on commit b673a3d

Please sign in to comment.