@@ -43,14 +43,15 @@ jobs:
43
43
with :
44
44
path : ~/.cargo/registry/index
45
45
key : cargo-git-index
46
+ - name : Lock MSRV-compatible dependencies
47
+ if : matrix.rust == '1.63.0'
48
+ env :
49
+ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS : fallback
50
+ # Note that this uses the runner's pre-installed stable cargo
51
+ run : cargo generate-lockfile
46
52
- uses : dtolnay/rust-toolchain@master
47
53
with :
48
54
toolchain : ${{ matrix.rust }}
49
- - name : Downgrade dependencies
50
- if : matrix.rust == '1.63.0'
51
- run : |
52
- cargo generate-lockfile
53
- cargo update -p hashbrown --precise 0.15.0
54
55
- name : Tests
55
56
run : |
56
57
cargo build --verbose --features "${{ matrix.features }}"
@@ -82,15 +83,16 @@ jobs:
82
83
with :
83
84
path : ~/.cargo/registry/index
84
85
key : cargo-git-index
86
+ - name : Lock MSRV-compatible dependencies
87
+ if : matrix.rust == '1.63.0'
88
+ env :
89
+ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS : fallback
90
+ # Note that this uses the runner's pre-installed stable cargo
91
+ run : cargo generate-lockfile
85
92
- uses : dtolnay/rust-toolchain@master
86
93
with :
87
94
toolchain : ${{ matrix.rust }}
88
95
target : ${{ matrix.target }}
89
- - name : Downgrade dependencies
90
- if : matrix.rust == '1.63.0'
91
- run : |
92
- cargo generate-lockfile
93
- cargo update -p hashbrown --precise 0.15.0
94
96
- name : Tests
95
97
run : |
96
98
cargo build -vv --target=${{ matrix.target }} --no-default-features
@@ -132,7 +134,10 @@ jobs:
132
134
- uses : taiki-e/install-action@v2
133
135
with :
134
136
tool : cargo-hack
135
- - run : cargo +nightly hack generate-lockfile --remove-dev-deps -Z direct-minimal-versions
137
+ - name : Lock minimal direct dependencies
138
+ run : cargo +nightly hack generate-lockfile --remove-dev-deps -Z direct-minimal-versions
139
+ env :
140
+ CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS : fallback
136
141
- name : Build (nightly)
137
142
run : cargo +nightly build --verbose --all-features
138
143
- name : Build (MSRV)
0 commit comments