From 1e4467b1be19ad62160d2244f356f6fb5a5c045d Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Wed, 22 Feb 2023 22:45:04 +0900 Subject: [PATCH] Test more Windows targets on CI - Test x86_64 gnu, i686 msvc, i686 gnu on Windows host - Test patched async-io with Wine --- .cirrus.yml | 7 +++---- .github/workflows/ci.yml | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 1c959cb..07c9763 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -11,14 +11,13 @@ env: RUSTUP_MAX_RETRIES: '10' freebsd_task: + name: test ($TARGET) freebsd_instance: image_family: freebsd-12-4 matrix: - - name: test (x86_64-unknown-freebsd) - env: + - env: TARGET: x86_64-unknown-freebsd - - name: test (i686-unknown-freebsd) - env: + - env: TARGET: i686-unknown-freebsd setup_script: - pkg install -y git diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 055170c..7c49fbd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,6 +33,13 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macos-latest] rust: [nightly, beta, stable] + include: + - os: windows-latest + rust: nightly-x86_64-pc-windows-gnu + - os: windows-latest + rust: nightly-i686-pc-windows-msvc + - os: windows-latest + rust: nightly-i686-pc-windows-gnu steps: - uses: actions/checkout@v3 - name: Install Rust @@ -153,6 +160,14 @@ jobs: target: x86_64-pc-windows-gnu runner: wine@7.13 - run: cargo test --target x86_64-pc-windows-gnu + - name: Clone async-io + run: git clone https://github.com/smol-rs/async-io.git + - name: Add patch section + run: echo '[patch.crates-io]' >> async-io/Cargo.toml + - name: Patch polling + run: echo 'polling = { path = ".." }' >> async-io/Cargo.toml + - name: Test async-io + run: cargo test --manifest-path=async-io/Cargo.toml msrv: runs-on: ${{ matrix.os }}