Add AsyncFd::(set_)socket_option2 #299
Workflow file for this run
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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: full | |
| permissions: | |
| contents: read | |
| jobs: | |
| Test: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/[email protected] | |
| - name: Run Tests | |
| run: cargo test | |
| - name: Run Tests (release build) | |
| run: cargo test --release | |
| Nightly: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - name: Run Tests | |
| run: cargo test | |
| - name: Run Tests (nightly feature) | |
| run: cargo test --features nightly | |
| - name: Run Tests (release build) | |
| run: cargo test --release | |
| - name: Run Tests (nightly feature, release build) | |
| run: cargo test --features nightly --release | |
| Clippy: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: clippy | |
| - name: Run Clippy | |
| run: make clippy | |
| Docs: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| - name: Check docs | |
| run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps | |
| Rustfmt: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| Sanitizer: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 5 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| sanitizer: [address, thread, memory, leak] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rust-src | |
| - name: Install llvm-symbolizer | |
| run: sudo apt install -y llvm-20 | |
| - name: Run tests with sanitizer | |
| run: ASAN_SYMBOLIZER_PATH=$(which llvm-symbolizer-20) make test_sanitizer sanitizer=${{ matrix.sanitizer }} |