ci(cargo-cache): align prewarm with job CARGO_HOME via CARGO_HOME_ENFORCED; enable cache-on-failure for upstream-merge/issue-code; keep preview-build cache settings

This commit is contained in:
James Peter
2025-09-13 02:02:46 +10:00
parent 6f95699027
commit 1df29a6f0f
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -118,11 +118,13 @@ jobs:
workspaces: |
codex-rs -> target
save-if: true
cache-on-failure: true
- name: Prime Rust build cache (fast local build)
shell: bash
env:
STRICT_CARGO_HOME: "1"
CARGO_HOME_ENFORCED: ${{ env.CARGO_HOME }}
run: |
set -euo pipefail
./build-fast.sh
+2
View File
@@ -287,6 +287,7 @@ jobs:
workspaces: |
codex-rs -> target
save-if: true
cache-on-failure: true
- name: Setup sccache (GHA backend)
if: steps.check_upstream.outputs.skip != 'true'
@@ -309,6 +310,7 @@ jobs:
if: steps.check_upstream.outputs.skip != 'true'
env:
STRICT_CARGO_HOME: "1"
CARGO_HOME_ENFORCED: ${{ env.CARGO_HOME }}
run: |
set -euo pipefail
./build-fast.sh