diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6118b68..bbd39f4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,3 +62,24 @@ jobs: run: cargo generate-lockfile - name: cargo test run: cargo test --locked --all-features --all-targets + minimal-versions: + # cargo-minimal-versions checks that the crate works with the minimum versions of its + # dependencies. + runs-on: ${{ matrix.os }} + name: ${{ matrix.os }} / stable / minimal-versions + strategy: + fail-fast: false + matrix: + os: [macos-latest, windows-latest] + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: Install stable + uses: dtolnay/rust-toolchain@stable + - name: cargo install cargo-hack + uses: taiki-e/install-action@cargo-hack + - name: cargo install cargo-minimal-versions + uses: taiki-e/install-action@cargo-minimal-versions + - name: cargo minimal-versions test + run: cargo minimal-versions test --all-features --all-targets diff --git a/Cargo.toml b/Cargo.toml index 7297cb4..4351cae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ rust-version = "1.72.0" libc = { version = "0.2", optional = true } [target.'cfg(windows)'.dependencies] -windows-sys = { version = "0.59", features = ["Win32_System_Threading"], optional = true } +windows-sys = { version = ">=0.52, <=0.61", features = ["Win32_System_Threading"], optional = true } [features] default = ["fast-barrier"]