Huh #314
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
name: Checks and tests | |
on: [push, pull_request] | |
jobs: | |
check_and_test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
toolchain: ["1.75.0", nightly] | |
name: ${{ matrix.toolchain }} on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
env: | |
RUSTFLAGS: --cfg ci | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
- name: Install Rust | |
run: | | |
rustup toolchain install ${{ matrix.toolchain }} --profile minimal --component clippy --no-self-update | |
rustup default ${{ matrix.toolchain }} | |
- name: Run Clippy for default configuration | |
run: cargo clippy -- -A unknown_lints | |
- name: Run tests for default configuration | |
run: cargo test | |
- name: Run rustdoc for default configuration | |
run: cargo doc --no-deps | |
- name: Run Clippy for Tokio configuration | |
run: cargo clippy --features tokio -- -A unknown_lints | |
- name: Run tests for Tokio configuration | |
run: cargo test --features tokio | |
- name: Run rustdoc for Tokio configuration | |
run: cargo doc --features tokio --no-deps |