chore: reqwest's features can be specified by app (#4) #17
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 | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ windows-latest, macos-latest, ubuntu-latest ] | |
| rust: [ "1.82.0", "stable", "nightly" ] | |
| env: | |
| RUST_BACKTRACE: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Delete rust-toolchain.toml | |
| run: rm rust-toolchain.toml | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| components: rustfmt, clippy | |
| - name: Check format | |
| if: ${{ matrix.rust == 'nightly' }} | |
| run: cargo +${{ matrix.rust }} fmt --all -- --check | |
| - name: Check clippy | |
| if: ${{ matrix.rust == 'nightly' }} | |
| run: cargo +${{ matrix.rust }} clippy --all-targets --all-features -- --deny warnings | |
| - name: Build | |
| run: cargo +${{ matrix.rust }} build --workspace --all-targets | |
| - name: Check examples | |
| run: | | |
| cargo +${{ matrix.rust }} check --example client | |
| # cargo +${{ matrix.rust }} check --example server |