mirror of
https://gitlab.com/pezkuwichain/pezkuwi-sdk.git
synced 2026-10-30 15:39:53 +00:00
feat: add persistent cargo target cache for self-hosted runners
Mount /cache/cargo-target/pezkuwi-sdk on VPS runners to reuse compiled artifacts between workflow runs. This significantly speeds up subsequent builds by avoiding full recompilation. Updated workflows: - checks.yml (cargo-clippy, check-try-runtime) - docs.yml (test-doc, build-rustdoc) - tests-linux-stable.yml (all test jobs) Also removed Swatinem/rust-cache where persistent cache is used since it's now redundant.
This commit is contained in:
1 parent
40aba02e1f
commit
245f09fb7c
4 files changed
+60
-54
No files matched your search
@@ -28,10 +28,13 @@ jobs:
|
||||
timeout-minutes: 45
|
||||
container:
|
||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||
volumes:
|
||||
- /cache/cargo-target/pezkuwi-sdk:/cache/target
|
||||
env:
|
||||
RUSTFLAGS: "-D warnings"
|
||||
SKIP_WASM_BUILD: 1
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_TARGET_DIR: /cache/target
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
||||
|
||||
@@ -56,9 +59,12 @@ jobs:
|
||||
timeout-minutes: 45
|
||||
container:
|
||||
image: ${{ needs.preflight.outputs.IMAGE }}
|
||||
volumes:
|
||||
- /cache/cargo-target/pezkuwi-sdk:/cache/target
|
||||
env:
|
||||
SKIP_WASM_BUILD: 1
|
||||
CARGO_INCREMENTAL: 0
|
||||
CARGO_TARGET_DIR: /cache/target
|
||||
steps:
|
||||
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v4.1.7
|
||||
|
||||
|
||||
Reference in new issue
Block a user