Skip to content

Commit

Permalink
Enable cache for ckb-librocksdb-sys, fix #4792
Browse files Browse the repository at this point in the history
  • Loading branch information
eval-exec committed Jan 25, 2025
1 parent 05aa7b6 commit 25e8adc
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci_linters_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
runner_label: ${{ steps.prologue.outputs.runner_label }}
steps:
- uses: actions/checkout@v3
# Enable caching of the 'librocksdb-sys' crate by additionally caching the
# 'librocksdb-sys' src directory which is managed by cargo
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
with:
path: ~/.cargo/registry/src/**/librocksdb-sys-*
- name: prologue
id: prologue
uses: ./.github/actions/ci_prologue
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_linters_ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }}
steps:
- uses: actions/checkout@v3
# Enable caching of the 'librocksdb-sys' crate by additionally caching the
# 'librocksdb-sys' src directory which is managed by cargo
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
with:
path: ~/.cargo/registry/src/**/librocksdb-sys-*
- name: prologue
id: prologue
uses: ./.github/actions/ci_prologue
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_quick_checks_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
runner_label: ${{ steps.prologue.outputs.runner_label }}
steps:
- uses: actions/checkout@v3
# Enable caching of the 'librocksdb-sys' crate by additionally caching the
# 'librocksdb-sys' src directory which is managed by cargo
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
with:
path: ~/.cargo/registry/src/**/librocksdb-sys-*
- name: prologue
id: prologue
uses: ./.github/actions/ci_prologue
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_quick_checks_ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ jobs:
LABELS: "${{ toJson(github.event.pull_request.labels.*.name) }}"
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_WORKFLOW: ${{ github.workflow }}
# Enable caching of the 'librocksdb-sys' crate by additionally caching the
# 'librocksdb-sys' src directory which is managed by cargo
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
with:
path: ~/.cargo/registry/src/**/librocksdb-sys-*
ci_quick_checks_ubuntu:
name: ci_quick_checks_ubuntu
needs: prologue
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_unit_tests_macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
runner_label: ${{ steps.prologue.outputs.runner_label }}
steps:
- uses: actions/checkout@v3
# Enable caching of the 'librocksdb-sys' crate by additionally caching the
# 'librocksdb-sys' src directory which is managed by cargo
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
with:
path: ~/.cargo/registry/src/**/librocksdb-sys-*
- name: prologue
id: prologue
uses: ./.github/actions/ci_prologue
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_unit_tests_ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
linux_runner_label: ${{ steps.prologue.outputs.linux_runner_label }}
steps:
- uses: actions/checkout@v3
# Enable caching of the 'librocksdb-sys' crate by additionally caching the
# 'librocksdb-sys' src directory which is managed by cargo
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
with:
path: ~/.cargo/registry/src/**/librocksdb-sys-*
- name: prologue
id: prologue
uses: ./.github/actions/ci_prologue
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/ci_unit_tests_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
windows_runner_label: ${{ steps.prologue.outputs.windows_runner_label }}
steps:
- uses: actions/checkout@v3
# Enable caching of the 'librocksdb-sys' crate by additionally caching the
# 'librocksdb-sys' src directory which is managed by cargo
- uses: bmwill/rust-cache@v1 # Fork of 'Swatinem/rust-cache' which allows caching additional paths
with:
path: ~/.cargo/registry/src/**/librocksdb-sys-*
- name: prologue
id: prologue
uses: ./.github/actions/ci_prologue
Expand Down

0 comments on commit 25e8adc

Please sign in to comment.