Merge pull request '在部署 runner 上复用 Bedrock 的 Cargo 构建缓存' (#29) from codex/deploy-build-cache into main
Deploy Rust Bedrock / deploy (push) Failing after 2m58s
Deploy Rust Bedrock / deploy (push) Failing after 2m58s
Reviewed-on: #29
This commit was merged in pull request #29.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user