-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
pull_request: | ||
push: | ||
branches: | ||
- master | ||
- taiki-e/ci | ||
schedule: | ||
- cron: '0 2 * * 0' | ||
|
||
|
@@ -31,6 +31,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
target: [''] | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
rust: [nightly, beta, stable] | ||
include: | ||
|
@@ -40,21 +41,31 @@ jobs: | |
rust: nightly-i686-pc-windows-msvc | ||
- os: windows-latest | ||
rust: nightly-i686-pc-windows-gnu | ||
- os: ubuntu-latest | ||
rust: nightly | ||
target: arm-linux-androideabi@21 # epoll_create1 requires API level 21+ | ||
- os: ubuntu-latest | ||
rust: nightly | ||
target: x86_64-pc-windows-gnu # Wine | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- 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 cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
- uses: taiki-e/setup-cross-toolchain-action@more | ||
with: | ||
target: ${{ matrix.target }} | ||
if: matrix.target != '' | ||
- run: cargo build --all --all-features --all-targets | ||
- run: cargo test | ||
- run: cargo test | ||
env: | ||
# Note: This cfg is intended to make it easy for polling developers to test | ||
# the backend that uses poll, and is not a public API. | ||
RUSTFLAGS: ${{ env.RUSTFLAGS }} --cfg polling_test_poll_backend | ||
if: startsWith(matrix.os, 'ubuntu') | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.target == '' | ||
- run: cargo hack build --feature-powerset --no-dev-deps | ||
- name: Clone async-io | ||
run: git clone https://github.com/smol-rs/async-io.git | ||
|
@@ -65,62 +76,24 @@ jobs: | |
- name: Test async-io | ||
run: cargo test --manifest-path=async-io/Cargo.toml | ||
|
||
# Android and Windows are tested in test job. | ||
# BSDs are tested in Cirrus CI. | ||
cross: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Rust | ||
run: rustup update stable | ||
- name: Install cross | ||
uses: taiki-e/install-action@cross | ||
# We don't test BSDs, since we already test them in Cirrus. | ||
- name: Android | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: cross test --target arm-linux-androideabi | ||
- name: Install Targets | ||
run: rustup target add aarch64-apple-ios x86_64-unknown-linux-gnux32 x86_64-unknown-fuchsia x86_64-unknown-illumos | ||
- name: iOS | ||
if: startsWith(matrix.os, 'macos') | ||
run: | | ||
rustup target add aarch64-apple-ios | ||
cross build --target aarch64-apple-ios | ||
run: cargo build --target aarch64-apple-ios | ||
- name: Linux x32 | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
rustup target add x86_64-unknown-linux-gnux32 | ||
cross check --target x86_64-unknown-linux-gnux32 | ||
run: cargo build --target x86_64-unknown-linux-gnux32 | ||
- name: Fuchsia | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
rustup target add x86_64-unknown-fuchsia | ||
cargo build --target x86_64-unknown-fuchsia | ||
run: cargo build --target x86_64-unknown-fuchsia | ||
- name: illumos | ||
if: startsWith(matrix.os, 'ubuntu') | ||
run: | | ||
rustup target add x86_64-unknown-illumos | ||
cargo build --target x86_64-unknown-illumos | ||
wine: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Rust | ||
run: rustup update stable | ||
- uses: taiki-e/setup-cross-toolchain-action@v1 | ||
with: | ||
target: x86_64-pc-windows-gnu | ||
runner: [email protected] | ||
- 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 | ||
run: cargo build --target x86_64-unknown-illumos | ||
|
||
msrv: | ||
runs-on: ${{ matrix.os }} | ||
|
This file was deleted.
Oops, something went wrong.