This repository has been archived on 2026-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
snp/Makefile.toml

53 lines
1.4 KiB
TOML

[tasks.testcov]
script_runner = "@shell"
ignore_errors = true
script = [
"mkdir -p coverage",
"mkdir -p coverage/html",
"mkdir -p coverage/",
"CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage -Ccodegen-units=1 -Copt-level=0 -Coverflow-checks=off' LLVM_PROFILE_FILE='llvm/cargo-test-%p-%m.profraw' cargo test --features test",
"grcov . --binary-path ./target/debug/deps/ -s . -t html --branch --ignore-not-existing --ignore '../*' --ignore '/*' --ignore '*/main.rs' --ignore '*/errors.rs' -o coverage/html/",
]
[tasks.testing]
script_runner = "@shell"
ignore_errors = true
script = [
"cargo test --features \"test\"",
]
[tasks.win_build]
script_runner = "@shell"
ignore_errors = true
script = [
"CROSS_CONTAINER_ENGINE=podman cross build --target x86_64-pc-windows-gnu --release"
]
[tasks.linux_build]
script_runner = "@shell"
ignore_errors = true
script = [
"cargo build --release",
# "CROSS_CONTAINER_ENGINE=podman cross build --target x86_64-pc-linux-gnu --release"
]
[tasks.win_test]
script_runner = "@shell"
ignore_errors = true
script = [
"CROSS_CONTAINER_ENGINE=podman cross test --features test --target x86_64-pc-windows-gnu"
]
[tasks.release]
dependencies = ["win_build","linux_build"]
script_runner = "@shell"
ignore_errors = true
script = [
"mkdir -p releases",
"rm -f releases/*",
"cp target/x86_64-pc-windows-gnu/release/snp.exe releases/",
"cp target/release/snp releases/",
"strip releases/snp",
"strip releases/snp.exe",
]