From eb2d1db239ce3408c94be225bb7dfc2331fd0794 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Fri, 4 Jul 2025 18:27:08 +0700 Subject: [PATCH] Install with sccache to speed it up --- podman/rustinstall.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/podman/rustinstall.sh b/podman/rustinstall.sh index f72851d95..2210dcc20 100755 --- a/podman/rustinstall.sh +++ b/podman/rustinstall.sh @@ -4,9 +4,11 @@ # in Podman after the image has been built curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain stable -cargo +stable install --force --version 0.1.1 cargo-config -cargo +stable install --force --version 1.16.0 just -cargo +stable install --force --version 0.27.0 cbindgen SCCACHE_PATH=https://github.com/mozilla/sccache/releases/download/v0.10.0/sccache-v0.10.0-$(uname -m)-unknown-linux-musl.tar.gz curl -sSL $SCCACHE_PATH | tar -xz -C ~/.cargo/bin --strip-components=1 --wildcards '*/sccache' +export RUSTC_WRAPPER=sccache + +cargo +stable install --force --version 0.1.1 cargo-config +cargo +stable install --force --version 1.16.0 just +cargo +stable install --force --version 0.27.0 cbindgen