Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use setup-cross-toolchain-action instead of cross #4568

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 33 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,32 +239,48 @@ jobs:
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- i686-unknown-linux-gnu
- powerpc-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- mips-unknown-linux-gnu
- arm-linux-androideabi
- mipsel-unknown-linux-musl
- mips64el-unknown-linux-gnuabi64
- mipsel-unknown-linux-gnu
- powerpc64le-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
- s390x-unknown-linux-gnu
# setup-cross-toolchain-action doesn't support testing of them
include:
- target: arm-linux-androideabi
cmd: check
- target: aarch64-pc-windows-msvc
cmd: check
steps:
- uses: actions/checkout@v3
- name: Install Rust ${{ env.rust_stable }}
# Use nightly to cross-testing doctest
- name: Install Rust ${{ env.rust_nightly }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.rust_stable }}
toolchain: ${{ env.rust_nightly }}
target: ${{ matrix.target }}
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: check
args: --workspace --all-features --target ${{ matrix.target }}
- uses: actions-rs/cargo@v1
- uses: taiki-e/setup-cross-toolchain-action@v1
with:
use-cross: true
command: check
args: --workspace --all-features --target ${{ matrix.target }}
target: ${{ matrix.target }}
if: matrix.cmd != 'check'
- uses: Swatinem/rust-cache@v1
- run: cargo test -v --workspace --all-features --target ${{ matrix.target }} $DOCTEST_XCOMPILE
env:
RUSTFLAGS: --cfg tokio_unstable -Dwarnings
RUSTFLAGS: ${{ env.RUSTFLAGS }} --cfg qemu
if: matrix.cmd != 'check'
- run: cargo test -v --workspace --all-features --target ${{ matrix.target }} $DOCTEST_XCOMPILE
env:
RUSTFLAGS: ${{ env.RUSTFLAGS }} --cfg qemu --cfg tokio_unstable
if: matrix.cmd != 'check'
- run: cargo ${{ matrix.cmd }} -v --workspace --all-features --target ${{ matrix.target }}
if: matrix.cmd == 'check'
- run: cargo ${{ matrix.cmd }} -v --workspace --all-features --target ${{ matrix.target }}
env:
RUSTFLAGS: ${{ env.RUSTFLAGS }} --cfg tokio_unstable
if: matrix.cmd == 'check'

features:
name: features
Expand Down
1 change: 1 addition & 0 deletions tokio/tests/task_local_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ fn local_tasks_wake_join_all() {

#[cfg(not(tokio_wasi))] // Wasi doesn't support panic recovery
#[test]
#[cfg_attr(qemu, ignore)] // qemu is slow
fn local_tasks_are_polled_after_tick() {
// This test depends on timing, so we run it up to five times.
for _ in 0..4 {
Expand Down
5 changes: 5 additions & 0 deletions tokio/tests/uds_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ async fn try_read_buf() -> std::io::Result<()> {

// https://github.com/tokio-rs/tokio/issues/3879
#[tokio::test]
// TODO
// thread 'epollhup' panicked at 'assertion failed: `(left == right)`
// left: `Uncategorized`,
// right: `ConnectionReset`', tokio/tests/uds_stream.rs:409:5
#[cfg_attr(any(target_arch = "mips", target_arch = "mips64"), ignore)]
#[cfg(not(target_os = "macos"))]
async fn epollhup() -> io::Result<()> {
let dir = tempfile::Builder::new()
Expand Down