Skip to content

Commit 82114c3

Browse files
authored
Separate cargo-pgrx and dependency caching in copilot setup steps. (#65)
1 parent 00b6fc9 commit 82114c3

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,23 @@ jobs:
5252
libxslt1-dev \
5353
libicu-dev
5454
55-
- name: Cache Cargo assets
55+
- name: Cache cargo-pgrx tool
5656
uses: actions/cache@v4
5757
with:
5858
path: |
59-
~/.cargo/registry
60-
~/.cargo/git
6159
~/.cargo/.crates2.json
6260
~/.cargo/bin/cargo-pgrx
63-
key: ${{ runner.os }}-copilot-setup-cargo-pgrx-0.16.1-${{ hashFiles('**/Cargo.lock') }}
61+
key: ${{ runner.os }}-copilot-setup-cargo-pgrx-0.16.1-v1
62+
63+
- name: Cache Cargo dependency sources
64+
uses: actions/cache@v4
65+
with:
66+
path: |
67+
~/.cargo/registry
68+
~/.cargo/git
69+
key: ${{ runner.os }}-copilot-setup-cargo-deps-rust-stable-${{ hashFiles('**/Cargo.lock') }}
6470
restore-keys: |
65-
${{ runner.os }}-copilot-setup-cargo-pgrx-0.16.1-
71+
${{ runner.os }}-copilot-setup-cargo-deps-rust-stable-
6672
6773
- name: Cache pgrx PostgreSQL downloads
6874
uses: actions/cache@v4

0 commit comments

Comments
 (0)