Skip to content

Commit d4f5706

Browse files
authored
ci: fix msrv on windows and macos target (#239)
1 parent 3c8dbe4 commit d4f5706

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,24 @@ jobs:
5656
- run: cargo test --all-features
5757

5858
msrv:
59-
name: Check MSRV (${{ matrix.rust }})
59+
name: Check MSRV (${{ matrix.rust }}) on ${{ matrix.os }}
6060
needs: [style]
6161
strategy:
6262
matrix:
6363
rust: [ 1.63 ] # keep in sync with 'rust-version' in Cargo.toml
64-
runs-on: ubuntu-latest
64+
os:
65+
- ubuntu-latest
66+
- windows-latest
67+
- macos-latest
68+
runs-on: ${{ matrix.os }}
6569
steps:
6670
- uses: actions/checkout@v4
6771
- uses: dtolnay/rust-toolchain@stable
72+
- uses: Swatinem/rust-cache@v2
6873
- name: Resolve MSRV aware dependencies
69-
run: cargo update
74+
run: |
75+
cargo update
76+
cargo update system-configuration --precise 0.5.0
7077
env:
7178
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS: fallback
7279
- name: Install Rust (${{ matrix.rust }})

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ pretty_env_logger = "0.5"
4848
pnet_datalink = "0.35.0"
4949

5050
[target.'cfg(target_os = "macos")'.dependencies]
51-
system-configuration = { version = "0.6.1", optional = true }
51+
system-configuration = { version = ">=0.5, <0.7", optional = true }
5252

5353
[target.'cfg(windows)'.dependencies]
54-
windows-registry = { version = "0.6", optional = true }
54+
windows-registry = { version = ">=0.3, <0.7", optional = true }
5555

5656
[features]
5757
default = []

0 commit comments

Comments
 (0)