repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

ci: pin rust 1.98, cache cargo home and target

01097b0d2fbe9e2997e48f857fe600b9f7033061

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (5)

+74 / −11 text lines

Diff layout

.ci/check.kdl

Modified

+14 / −2 text lines

11job "check" {
2 image "docker.io/library/rust:latest"
2 image "docker.io/library/rust:1.98"
33 trigger {
44 push {
55 branch "trunk"
66 }
77 }
8 cache "cargo-home" {
9 path ".cargo-home"
10 key {
11 file "Cargo.lock"
12 }
13 }
14 cache "target" {
15 path "target"
16 key {
17 file "Cargo.lock"
18 }
19 }
20 run "export CARGO_HOME=\"$PWD/.cargo-home\""
821 run "rustup target add wasm32-wasip2"
9 run "rustup component add rustfmt clippy"
1022 run "cargo run -p xtask -- ci"

.ci/e2e.kdl

Modified

+14 / −2 text lines

11job "e2e" {
2 image "docker.io/library/rust:latest"
2 image "docker.io/library/rust:1.98"
33 trigger {
44 push {
55 branch "trunk"
66 }
77 }
8 cache "cargo-home" {
9 path ".cargo-home"
10 key {
11 file "Cargo.lock"
12 }
13 }
14 cache "target" {
15 path "target"
16 key {
17 file "Cargo.lock"
18 }
19 }
20 run "export CARGO_HOME=\"$PWD/.cargo-home\""
821 run "rustup target add wasm32-wasip2"
9 run "rustup component add rustfmt clippy"
1022 run "cargo run -p xtask -- bootstrap"
1123 run "cargo run -p xtask -- e2e"

.ci/nightly.kdl

Modified

+16 / −3 text lines

11job "nightly" {
2 image "docker.io/library/rust:latest"
2 image "docker.io/library/rust:1.98"
33 trigger {
44 schedule "0 3 * * *"
55 }
6 run "rustup target add wasm32-wasip2"
7 run "rustup component add rustfmt clippy llvm-tools"
6 cache "cargo-home" {
7 path ".cargo-home"
8 key {
9 file "Cargo.lock"
10 }
11 }
12 cache "target" {
13 path "target"
14 key {
15 file "Cargo.lock"
16 }
17 }
818 cache "valgrind" {
919 path "target/tools/valgrind"
1020 key {
1121 file ".ci/nightly.kdl"
1222 }
1323 }
24 run "export CARGO_HOME=\"$PWD/.cargo-home\""
25 run "rustup target add wasm32-wasip2"
26 run "rustup component add llvm-tools"
1427 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)"
1528 run "cargo run -p xtask -- bootstrap"
1629 run "cargo run -p xtask -- mutants || echo 'missed mutants recorded in the report'"

.ci/perf.kdl

Modified

+14 / −1 text lines

11job "perf" {
2 image "docker.io/library/rust:latest"
2 image "docker.io/library/rust:1.98"
33 trigger {
44 push {
55 branch "trunk"
66 }
77 }
8 cache "cargo-home" {
9 path ".cargo-home"
10 key {
11 file "Cargo.lock"
12 }
13 }
14 cache "target" {
15 path "target"
16 key {
17 file "Cargo.lock"
18 }
19 }
820 cache "valgrind" {
921 path "target/tools/valgrind"
1022 key {
1123 file ".ci/perf.kdl"
1224 }
1325 }
26 run "export CARGO_HOME=\"$PWD/.cargo-home\""
1427 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)"
1528 run "cargo run -p xtask -- bootstrap"
1629 run "PATH=$PWD/target/tools/valgrind/bin:$PATH cargo run -p xtask -- perf"

.ci/report.kdl

Modified

+16 / −3 text lines

11job "report" {
2 image "docker.io/library/rust:latest"
3 run "rustup target add wasm32-wasip2"
4 run "rustup component add rustfmt clippy llvm-tools"
2 image "docker.io/library/rust:1.98"
3 cache "cargo-home" {
4 path ".cargo-home"
5 key {
6 file "Cargo.lock"
7 }
8 }
9 cache "target" {
10 path "target"
11 key {
12 file "Cargo.lock"
13 }
14 }
515 cache "valgrind" {
616 path "target/tools/valgrind"
717 key {
818 file ".ci/report.kdl"
919 }
1020 }
21 run "export CARGO_HOME=\"$PWD/.cargo-home\""
22 run "rustup target add wasm32-wasip2"
23 run "rustup component add llvm-tools"
1124 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)"
1225 run "cargo run -p xtask -- bootstrap"
1326 run "PATH=$PWD/target/tools/valgrind/bin:$PATH cargo run -p xtask -- report"