Update windows-sys to 0.61.0 (#6) #38
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| name: CI | |
| jobs: | |
| lint: | |
| name: Lint | |
| # Typically one would use ubuntu-latest for clippy and rustfmt jobs. Use windows-latest in this | |
| # case because most of the code is Windows-specific. | |
| runs-on: windows-latest | |
| env: | |
| RUSTFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Lint (rustfmt) | |
| run: cargo xfmt --check | |
| - name: Lint (clippy) | |
| run: cargo clippy --all-features --all-targets | |
| build: | |
| name: Build and test | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ windows-latest, ubuntu-latest ] | |
| # 1.71 is the MSRV | |
| rust-version: [ 1.71, stable ] | |
| fail-fast: false | |
| env: | |
| RUSTFLAGS: -D warnings | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: ${{ matrix.rust-version }} | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Build | |
| run: cargo build | |
| - name: Test | |
| run: cargo test --all-features |