Skip to content

Commit

Permalink
fix(ci): Pin dependencies to MSRV-compatible versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamreichold committed May 24, 2023
1 parent 73545b7 commit 582e913
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ rayon = ["rayon_", "std"]

matrixmultiply-threading = ["matrixmultiply/threading"]

[profile.release]
[profile.bench]
debug = true

Expand Down
16 changes: 15 additions & 1 deletion scripts/all-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ set -e
FEATURES=$1
CHANNEL=$2

if [ "$CHANNEL" -eq "1.51.0" ]; then
cargo update --package rayon --precise 1.5.3
cargo update --package rayon-core --precise 1.9.3
cargo update --package serde --precise 1.0.156
cargo update --package thiserror --precise 1.0.39
cargo update --package once_cell --precise 1.14.0
cargo update --package openblas-src --precise 0.10.5
cargo update --package openblas-build --precise 0.10.5

cargo update --manifest-path=xtest-numeric/Cargo.toml --package thiserror --precise 1.0.39
cargo update --manifest-path=xtest-numeric/Cargo.toml --package openblas-src --precise 0.10.5
cargo update --manifest-path=xtest-numeric/Cargo.toml --package openblas-build --precise 0.10.5
fi

cargo build --verbose --no-default-features
# Testing both dev and release profiles helps find bugs, especially in low level code
cargo test --verbose --no-default-features
Expand All @@ -19,4 +33,4 @@ cargo test --manifest-path=xtest-blas/Cargo.toml --verbose --features openblas-s
cargo test --examples
CARGO_TARGET_DIR=target/ cargo test --manifest-path=xtest-numeric/Cargo.toml --verbose
CARGO_TARGET_DIR=target/ cargo test --manifest-path=xtest-numeric/Cargo.toml --verbose --features test_blas
([ "$CHANNEL" != "nightly" ] || cargo bench --no-run --verbose --features "$FEATURES")
([ "$CHANNEL" -ne "nightly" ] || cargo bench --no-run --verbose --features "$FEATURES")
2 changes: 1 addition & 1 deletion xtest-blas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ num-traits = "0.2"
num-complex = { version = "0.4", default-features = false }

[dependencies]
ndarray = { path = "../", features = ["approx", "blas"] }
ndarray = { path = "..", features = ["approx", "blas"] }

blas-src = { version = "0.8", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion xtest-numeric/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2018"
[dependencies]
approx = "0.4"
ndarray = { path = "..", features = ["approx"] }
ndarray-rand = { path = "../ndarray-rand/" }
ndarray-rand = { path = "../ndarray-rand" }
rand_distr = "0.4"

blas-src = { optional = true, version = "0.8", default-features = false, features = ["openblas"] }
Expand Down
2 changes: 1 addition & 1 deletion xtest-serialization/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ publish = false
test = false

[dependencies]
ndarray = { path = "../", features = ["serde"] }
ndarray = { path = "..", features = ["serde"] }

[features]
default = ["ron"]
Expand Down

0 comments on commit 582e913

Please sign in to comment.