Skip to content

Commit bff7f72

Browse files
committed
Fix older CI for num-traits 0.2.19
1 parent c643db4 commit bff7f72

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
rust: [1.31.0, stable, beta, nightly]
11+
rust: [
12+
1.31.0, # MSRV
13+
1.51.0,
14+
1.60.0,
15+
stable,
16+
beta,
17+
nightly,
18+
]
1219
steps:
1320
- uses: actions/checkout@v4
1421
- uses: actions/cache@v4

ci/rustup.sh

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 0 deletions
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)