Test patched async-io on more platforms (#79)

This commit is contained in:
Taiki Endo 2023-04-10 15:34:34 +09:00 committed by GitHub
parent 6857a165aa
commit 1e966a0848
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View File

@ -23,5 +23,12 @@ freebsd_task:
- pkg install -y git
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable --target $TARGET
test_script:
# https://github.com/cirruslabs/cirrus-ci-docs/issues/483
- sudo sysctl net.inet.tcp.blackhole=0
- . $HOME/.cargo/env
- cargo test --target $TARGET
# Test async-io
- git clone https://github.com/smol-rs/async-io.git
- echo '[patch.crates-io]' >> async-io/Cargo.toml
- echo 'polling = { path = ".." }' >> async-io/Cargo.toml
- cargo test --target $TARGET --manifest-path=async-io/Cargo.toml

View File

@ -106,6 +106,12 @@ jobs:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- 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 NetBSD
id: test
uses: vmactions/netbsd-vm@v0
@ -117,12 +123,20 @@ jobs:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --default-toolchain stable
run: |
. $HOME/.cargo/env
set -ex
cargo test
cargo test --manifest-path=async-io/Cargo.toml
openbsd:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- 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 OpenBSD
id: test
uses: vmactions/openbsd-vm@v0
@ -133,12 +147,20 @@ jobs:
prepare: |
pkg_add git rust
run: |
set -ex
cargo test
cargo test --manifest-path=async-io/Cargo.toml
dragonfly:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- 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 Dragonfly BSD
id: test
uses: vmactions/dragonflybsd-vm@v0
@ -149,7 +171,9 @@ jobs:
prepare: |
pkg install -y git rust
run: |
set -ex
cargo test
cargo test --manifest-path=async-io/Cargo.toml
wine:
runs-on: ubuntu-22.04
@ -211,6 +235,10 @@ jobs:
- run: cargo fmt --all --check
security_audit:
permissions:
checks: write
contents: read
issues: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3