diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f42b141fb..7ee3cbfeb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,6 +61,9 @@ jobs: - name: Install Rust # --no-self-update is necessary because the windows environment cannot self-update rustup.exe. run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} + - name: Install cross + uses: taiki-e/install-action@cross + if: matrix.target != '' - name: Test run: ./ci/test.sh @@ -79,7 +82,8 @@ jobs: - uses: actions/checkout@v2 - name: Install Rust run: rustup update ${{ matrix.rust }} && rustup default ${{ matrix.rust }} - - uses: taiki-e/install-action@cargo-hack + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack - name: Check features run: ./ci/check-features.sh @@ -90,7 +94,8 @@ jobs: - uses: actions/checkout@v2 - name: Install Rust run: rustup update nightly && rustup default nightly - - uses: taiki-e/install-action@cargo-hack + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack - name: dependency tree check run: ./ci/dependencies.sh diff --git a/ci/test.sh b/ci/test.sh index 5bda4ff05..8e796048a 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -7,7 +7,6 @@ export RUSTFLAGS="-D warnings" if [[ -n "$RUST_TARGET" ]]; then # If RUST_TARGET is specified, use cross for testing. - cargo install cross cross test --all --target "$RUST_TARGET" --exclude benchmarks -- --test-threads=1 # For now, the non-host target only runs tests.