Skip to content

Commit 8ad60e6

Browse files
committed
Enable cache for ckb-librocksdb-sys, fix nervosnetwork#4792
Signed-off-by: Eval EXEC <[email protected]>
1 parent 05aa7b6 commit 8ad60e6

7 files changed

+35
-0
lines changed

.github/workflows/ci_linters_macos.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
runner_label: ${{ steps.prologue.outputs.runner_label }}
3535
steps:
3636
- uses: actions/checkout@v3
37+
# Enable caching of the 'ckb-librocksdb-sys' crate by additionally caching the
38+
# 'ckb-librocksdb-sys' src directory which is managed by cargo
39+
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
40+
with:
41+
path: ~/.cargo/registry/src/**/ckb-librocksdb-sys-*
3742
- name: prologue
3843
id: prologue
3944
uses: ./.github/actions/ci_prologue

.github/workflows/ci_linters_ubuntu.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }}
3535
steps:
3636
- uses: actions/checkout@v3
37+
# Enable caching of the 'ckb-librocksdb-sys' crate by additionally caching the
38+
# 'ckb-librocksdb-sys' src directory which is managed by cargo
39+
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
40+
with:
41+
path: ~/.cargo/registry/src/**/ckb-librocksdb-sys-*
3742
- name: prologue
3843
id: prologue
3944
uses: ./.github/actions/ci_prologue

.github/workflows/ci_quick_checks_macos.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
runner_label: ${{ steps.prologue.outputs.runner_label }}
3535
steps:
3636
- uses: actions/checkout@v3
37+
# Enable caching of the 'ckb-librocksdb-sys' crate by additionally caching the
38+
# 'ckb-librocksdb-sys' src directory which is managed by cargo
39+
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
40+
with:
41+
path: ~/.cargo/registry/src/**/ckb-librocksdb-sys-*
3742
- name: prologue
3843
id: prologue
3944
uses: ./.github/actions/ci_prologue

.github/workflows/ci_quick_checks_ubuntu.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
4646
GITHUB_REPOSITORY: ${{ github.repository }}
4747
GITHUB_WORKFLOW: ${{ github.workflow }}
48+
# Enable caching of the 'ckb-librocksdb-sys' crate by additionally caching the
49+
# 'ckb-librocksdb-sys' src directory which is managed by cargo
50+
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
51+
with:
52+
path: ~/.cargo/registry/src/**/ckb-librocksdb-sys-*
4853
ci_quick_checks_ubuntu:
4954
name: ci_quick_checks_ubuntu
5055
needs: prologue

.github/workflows/ci_unit_tests_macos.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
runner_label: ${{ steps.prologue.outputs.runner_label }}
3535
steps:
3636
- uses: actions/checkout@v3
37+
# Enable caching of the 'ckb-librocksdb-sys' crate by additionally caching the
38+
# 'ckb-librocksdb-sys' src directory which is managed by cargo
39+
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
40+
with:
41+
path: ~/.cargo/registry/src/**/ckb-librocksdb-sys-*
3742
- name: prologue
3843
id: prologue
3944
uses: ./.github/actions/ci_prologue

.github/workflows/ci_unit_tests_ubuntu.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }}
3535
steps:
3636
- uses: actions/checkout@v3
37+
# Enable caching of the 'ckb-librocksdb-sys' crate by additionally caching the
38+
# 'ckb-librocksdb-sys' src directory which is managed by cargo
39+
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
40+
with:
41+
path: ~/.cargo/registry/src/**/ckb-librocksdb-sys-*
3742
- name: prologue
3843
id: prologue
3944
uses: ./.github/actions/ci_prologue

.github/workflows/ci_unit_tests_windows.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
windows_runner_label: ${{ steps.prologue.outputs.windows_runner_label }}
3535
steps:
3636
- uses: actions/checkout@v3
37+
# Enable caching of the 'ckb-librocksdb-sys' crate by additionally caching the
38+
# 'ckb-librocksdb-sys' src directory which is managed by cargo
39+
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
40+
with:
41+
path: ~/.cargo/registry/src/**/ckb-librocksdb-sys-*
3742
- name: prologue
3843
id: prologue
3944
uses: ./.github/actions/ci_prologue

0 commit comments

Comments
 (0)