Luigit
repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by admin

.ci/check.kdl

Raw
job "check" {
  build {
    containerfile ".ci/Containerfile"
    context "."
  }
  trigger {
    push {
      branch "trunk"
    }
  }
  cache "cargo-home" {
    path ".cargo-home"
    key {
      file "Cargo.lock"
    }
  }
  cache "target" {
    path "target"
    key {
      file "Cargo.lock"
    }
  }
  cache "jco-tools" {
    path "target/tools"
    key {
      file ".config/jco/package-lock.json"
    }
  }
  run "export CARGO_HOME=\"$PWD/.cargo-home\""
  run "rustup target add wasm32-wasip2"
  run "cargo run --locked -p xtask -- ci"
}