This repository was archived by the owner on May 17, 2026. It is now read-only.
fix(unix): new on non-linux #9
This file contains hidden or 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
| name: Test | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
| cancel-in-progress: true | |
| env: | |
| RUST_BACKTRACE: 1 | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.setup.os }} | |
| strategy: | |
| matrix: | |
| toolchain: ['stable'] | |
| setup: | |
| - os: 'ubuntu-22.04' | |
| features: 'tokio,futures,io-uring' | |
| - os: 'ubuntu-22.04' | |
| features: 'tokio,futures,polling' | |
| - os: 'windows-latest' | |
| features: 'tokio,futures' | |
| - os: 'macos-15' | |
| features: 'tokio,futures' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Setup Rust Toolchain | |
| run: rustup toolchain install ${{ matrix.toolchain }} | |
| - name: Setup target | |
| if: ${{ matrix.setup.target }} | |
| run: rustup +${{ matrix.toolchain }} target install ${{ matrix.setup.target }} | |
| - name: Test on ${{ matrix.setup.os }} ${{ matrix.toolchain }} ${{ matrix.setup.target }} | |
| shell: bash | |
| run: | | |
| set -ex | |
| ARGS=() | |
| # Add features if features is not empty | |
| if [[ -n "${{ matrix.setup.features }}" ]]; then | |
| ARGS+=("--features" "${{ matrix.setup.features }}") | |
| fi | |
| cargo +${{ matrix.toolchain }} test "${ARGS[@]}" |