chore: shard Cargo build cache by workspace
This commit is contained in:
+1
-4
@@ -1,6 +1,3 @@
|
|||||||
# Keep intermediate build artifacts outside individual worktrees and reuse them
|
|
||||||
# across parallel development of this repository. Final artifacts remain in each
|
|
||||||
# worktree's target directory.
|
|
||||||
[build]
|
[build]
|
||||||
build-dir = "{cargo-cache-home}/build/yoi"
|
build-dir = "{cargo-cache-home}/build/{workspace-path-hash}"
|
||||||
incremental = false
|
incremental = false
|
||||||
|
|||||||
+4
-1
@@ -8,13 +8,16 @@ pkgs.mkShell {
|
|||||||
cargo
|
cargo
|
||||||
pkgs.sccache
|
pkgs.sccache
|
||||||
];
|
];
|
||||||
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
|
|
||||||
# sccache is additive to Cargo's shared build-dir, so keep its disk usage bounded.
|
# sccache is additive to Cargo's shared build-dir, so keep its disk usage bounded.
|
||||||
|
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
|
||||||
SCCACHE_CACHE_SIZE = "5G";
|
SCCACHE_CACHE_SIZE = "5G";
|
||||||
|
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
pkg-config
|
pkg-config
|
||||||
openssl
|
openssl
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
if repo_root="$(git rev-parse --show-toplevel 2>/dev/null)"; then
|
if repo_root="$(git rev-parse --show-toplevel 2>/dev/null)"; then
|
||||||
: # export YOI_POD_RUNTIME_COMMAND="$repo_root/target/debug/yoi"
|
: # export YOI_POD_RUNTIME_COMMAND="$repo_root/target/debug/yoi"
|
||||||
|
|||||||
Reference in New Issue
Block a user