Test more Windows targets on CI

- Test x86_64 gnu, i686 msvc, i686 gnu on Windows host
- Test patched async-io with Wine
This commit is contained in:
Taiki Endo 2023-02-22 22:45:04 +09:00
parent d443196f64
commit 1e4467b1be
2 changed files with 18 additions and 4 deletions

View File

@ -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

View File

@ -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 }}