Skip to content

Commit

Permalink
Fix older CI for num-traits 0.2.19
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed May 4, 2024
1 parent c643db4 commit bff7f72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.31.0, stable, beta, nightly]
rust: [
1.31.0, # MSRV
1.51.0,
1.60.0,
stable,
beta,
nightly,
]
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
Expand Down
2 changes: 1 addition & 1 deletion ci/rustup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
set -ex

ci=$(dirname $0)
for version in 1.31.0 stable beta nightly; do
for version in 1.31.0 1.51.0 1.60.0 stable beta nightly; do
rustup run "$version" "$ci/test_full.sh"
done
6 changes: 6 additions & 0 deletions ci/test_full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ fi
FEATURES=()
echo "Testing supported features: ${FEATURES[*]}"

cargo generate-lockfile

# num-traits 0.2.19 started using dep: features, which requires 1.60 and is
# otherwise ignored down to 1.51, but we need a manual downgrade before that.
check_version 1.51 || cargo update -p num-traits --precise 0.2.18

set -x

# test the default
Expand Down

0 comments on commit bff7f72

Please sign in to comment.