diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6fb41acb..fa99a9b0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ jobs: strategy: fail-fast: false matrix: - build: [stable, msrv-linux, msrv-windows, beta, nightly, macos, windows] + build: [stable, msrv-linux, msrv-windows, beta, nightly, macos, windows, windows-sys-0.60, windows-sys-0.61] include: - build: stable os: ubuntu-latest @@ -25,6 +25,7 @@ jobs: - build: msrv-windows os: windows-latest rust: 1.70.0 + pin-windows-sys: '0.60.2' - build: beta os: ubuntu-latest rust: beta @@ -37,11 +38,22 @@ jobs: - build: windows os: windows-latest rust: stable + pin-windows-sys: '' # test latest compatible windows-sys version + - build: windows-sys-0.61 + os: windows-latest + rust: stable + pin-windows-sys: '0.61.2' + - build: windows-sys-0.60 + os: windows-latest + rust: stable + pin-windows-sys: '0.60.2' steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.rust }} + - if: ${{ matrix.pin-windows-sys != '' }} + run: cargo update -p windows-sys --precise ${{ matrix.pin-windows-sys }} - uses: taiki-e/install-action@cargo-hack - name: Run tests run: cargo hack test --feature-powerset && cargo hack test --feature-powerset --release diff --git a/Cargo.toml b/Cargo.toml index 04adc8b2..971970c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,6 +53,7 @@ features = ["all"] libc = "0.2.172" [target.'cfg(windows)'.dependencies.windows-sys] +# when changing this range, adjust the CI matrix so all supported versions are tested version = ">=0.60, <0.62" features = [ "Win32_Foundation",