repositories / smith
smith
There are many coding harnesses - but this one is fast
owned by admin
.ci/perf.kdl
Rawjob "perf" {
image "docker.io/library/rust:1.98"
trigger {
push {
branch "trunk"
}
}
cache "cargo-home" {
path ".cargo-home"
key {
file "Cargo.lock"
}
}
cache "target" {
path "target"
key {
file "Cargo.lock"
}
}
cache "valgrind" {
path "target/tools/valgrind"
key {
file ".ci/perf.kdl"
}
}
run "export CARGO_HOME=\"$PWD/.cargo-home\""
run "V=$PWD/target/tools/valgrind; test -x $V/bin/valgrind || (mkdir -p target/tools/src && curl -sSL https://sourceware.org/pub/valgrind/valgrind-3.25.1.tar.bz2 | tar -xj -C target/tools/src && cd target/tools/src/valgrind-3.25.1 && ./configure -q --prefix=$V >/dev/null && make -s -j$(nproc) >/dev/null && make -s install >/dev/null)"
run "cargo run -p xtask -- bootstrap"
run "PATH=$PWD/target/tools/valgrind/bin:$PATH cargo run -p xtask -- perf"
}