Skip to content

Commit 20f6939

Browse files
committed
Pin once_cell to 1.14.0 to keep MSRV CI job working.
1 parent cde7906 commit 20f6939

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,15 @@ jobs:
143143
cargo_toml["dependencies"]["ndarray"] = "0.13.1"
144144
cargo_toml["dependencies"]["parking_lot"] = "0.11.2"
145145
cargo_toml["dependencies"]["num-complex"] = "0.2.4"
146+
cargo_toml["dependencies"]["once_cell"] = "1.14.0"
146147
with open("Cargo.toml", "w") as f:
147148
toml.dump(cargo_toml, f)
148149
working-directory: examples/simple
149150
shell: python
150151
- name: Generate lockfile
151152
run: cargo generate-lockfile
152153
working-directory: examples/simple
153-
- name: Unify dependencies on ndarray to 0.13.1 and on parking_lot to 0.11.2
154+
- name: Unify dependencies to MSRV-compatible versions
154155
run: |
155156
import toml
156157
import subprocess
@@ -159,8 +160,10 @@ jobs:
159160
pkg_id = pkg["name"] + ":" + pkg["version"]
160161
if pkg["name"] == "ndarray" and pkg["version"] != "0.13.1":
161162
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.13.1"], check=True)
162-
if pkg["name"] == "parking_lot" and pkg["version"] != "0.11.2":
163+
elif pkg["name"] == "parking_lot" and pkg["version"] != "0.11.2":
163164
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.11.2"], check=True)
165+
elif pkg["name"] == "once_cell" and pkg["version"] != "1.14.0":
166+
subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "1.14.0"], check=True)
164167
working-directory: examples/simple
165168
shell: python
166169
- name: Test example

0 commit comments

Comments
 (0)