From c04433e8d816ff69f936bcbb4f36253213b1327e Mon Sep 17 00:00:00 2001 From: Egor Lazarchuk Date: Mon, 9 Dec 2024 13:34:49 +0000 Subject: [PATCH] feat: add unit tests with --release flag Rust does optimizations which can cause havoc in `--release` mode, so add another set of unit tests with all optimizations enabled. Signed-off-by: Egor Lazarchuk --- .buildkite/test_description.json | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.buildkite/test_description.json b/.buildkite/test_description.json index 6029da7..d4beb38 100644 --- a/.buildkite/test_description.json +++ b/.buildkite/test_description.json @@ -44,6 +44,29 @@ "privileged": true } }, + { + "test_name": "unittests-gnu-release", + "command": "cargo test --release --all-features --workspace", + "platform": [ + "x86_64", + "aarch64", + "riscv64" + ], + "docker_plugin": { + "privileged": true + } + }, + { + "test_name": "unittests-musl-release", + "command": "cargo test --release --all-features --workspace --target {target_platform}-unknown-linux-musl", + "platform": [ + "x86_64", + "aarch64" + ], + "docker_plugin": { + "privileged": true + } + }, { "test_name": "clippy", "command": "cargo clippy --workspace --bins --examples --benches --all-features --all-targets -- -D warnings -D clippy::undocumented_unsafe_blocks",