From b9c4f1013ab59d33fffe61b1a5fc3d033d807e9b Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Wed, 24 May 2023 09:08:44 +0200 Subject: [PATCH] fix(ci): Integrate numeric tests into workspace to avoid confusing cross. --- Cargo.toml | 7 +++++-- scripts/all-tests.sh | 4 ---- scripts/cross-tests.sh | 2 +- xtest-numeric/Cargo.toml | 5 ----- 4 files changed, 6 insertions(+), 12 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1c16e5bf1..a648b09bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -75,10 +75,13 @@ matrixmultiply-threading = ["matrixmultiply/threading"] [profile.bench] debug = true +[profile.dev.package.numeric-tests] +opt-level = 2 +[profile.test.package.numeric-tests] +opt-level = 2 [workspace] -members = ["ndarray-rand", "xtest-serialization", "xtest-blas"] -exclude = ["xtest-numeric"] +members = ["ndarray-rand", "xtest-serialization", "xtest-blas", "xtest-numeric"] [package.metadata.release] no-dev-version = true diff --git a/scripts/all-tests.sh b/scripts/all-tests.sh index 70f8e8d45..2167f3451 100755 --- a/scripts/all-tests.sh +++ b/scripts/all-tests.sh @@ -14,10 +14,6 @@ if [ "$CHANNEL" = "1.51.0" ]; then 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 diff --git a/scripts/cross-tests.sh b/scripts/cross-tests.sh index 7c4f13111..7473a72fa 100755 --- a/scripts/cross-tests.sh +++ b/scripts/cross-tests.sh @@ -11,4 +11,4 @@ cross build -v --features="$FEATURES" --target=$TARGET cross test -v --no-fail-fast --features="$FEATURES" --target=$TARGET cross test -v --no-fail-fast --target=$TARGET --manifest-path=ndarray-rand/Cargo.toml --features quickcheck cross test -v --no-fail-fast --target=$TARGET --manifest-path=xtest-serialization/Cargo.toml --verbose -CARGO_TARGET_DIR=target/ cross test -v --no-fail-fast --target=$TARGET --manifest-path=xtest-numeric/Cargo.toml +cross test -v --no-fail-fast --target=$TARGET --manifest-path=xtest-numeric/Cargo.toml diff --git a/xtest-numeric/Cargo.toml b/xtest-numeric/Cargo.toml index bdfe15044..8558d39ad 100644 --- a/xtest-numeric/Cargo.toml +++ b/xtest-numeric/Cargo.toml @@ -27,8 +27,3 @@ test = false [features] test_blas = ["ndarray/blas", "blas-src", "openblas-src"] - -[profile.dev] -opt-level = 2 -[profile.test] -opt-level = 2