Cache Bedrock release builds on the deployment runner

This commit is contained in:
2026-12-01 00:20:20 +08:00
parent dd8b41b67e
commit 27475870d0
+2
View File
@@ -6,6 +6,8 @@ mkdir -p "$output"
docker run --rm \
--mount "type=bind,source=$PWD,target=/work,readonly" \
--mount "type=bind,source=$output,target=/out" \
--mount type=volume,source=bedrock-cargo-target,target=/tmp/bedrock-target \
--mount type=volume,source=bedrock-cargo-registry,target=/usr/local/cargo/registry \
-w /work -e CARGO_TARGET_DIR=/tmp/bedrock-target \
rust:1.91.1-bookworm sh -ec '
cargo build --locked --release -p backend