Skip to content

Commit 3ce90c5

Browse files
committed
Fix older CI for num-traits 0.2.19
1 parent ede2d2c commit 3ce90c5

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/ci.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
matrix:
1111
rust: [
1212
1.31.0, # MSRV
13+
1.51.0,
14+
1.60.0,
1315
stable,
1416
beta,
1517
nightly,

ci/rustup.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
set -ex
66

77
ci=$(dirname $0)
8-
for version in 1.31.0 stable beta nightly; do
8+
for version in 1.31.0 1.51.0 1.60.0 stable beta nightly; do
99
rustup run "$version" "$ci/test_full.sh"
1010
done

ci/test_full.sh

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ fi
3030
FEATURES=()
3131
echo "Testing supported features: ${FEATURES[*]}"
3232

33+
cargo generate-lockfile
34+
35+
# num-traits 0.2.19 started using dep: features, which requires 1.60 and is
36+
# otherwise ignored down to 1.51, but we need a manual downgrade before that.
37+
check_version 1.51 || cargo update -p num-traits --precise 0.2.18
38+
3339
set -x
3440

3541
# test the default

0 commit comments

Comments
 (0)