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 <yegorlz@amazon.co.uk>
This commit is contained in:
Egor Lazarchuk
2024-12-09 13:34:49 +00:00
committed by Stefano Garzarella
parent 1150c47872
commit c04433e8d8

View File

@@ -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",