istio / ztunnel

The `ztunnel` component of ambient mesh
Apache License 2.0
291 stars 98 forks source link

Setup prow to cache rustc outputs #6

Open howardjohn opened 1 year ago

howardjohn commented 1 year ago

We have now setup crates download caching. Sharing a build cache seems much harder. We can't just naively share the target folder since it uses locks. sccache with local folder didn't work for me, not sure why

howardjohn commented 1 year ago
 1: cargo install sccache --features openssl/vendored
  2: export SCCACHE_DIR=/tmp/rust-build/sccache
  3: export RUSTC_WRAPPER=/home/.cargo/bin/sccache
  4  export CARGO_INCREMENTAL=0
  5: export SCCACHE_ERROR_LOG=/tmp/sccache_log.txt
  6: export SCCACHE_LOG=debug

^ My previous attempt to use sccache in prow; didn't work

jaellio commented 1 year ago

@Stevenjin8