Skip to content

Commit 7866b19

Browse files
jakubkulhanclaude
andcommitted
Add Rust/Cargo caching to GitHub Actions for faster replication test builds
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent ebfa5cd commit 7866b19

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/test.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ jobs:
6262
- uses: actions/checkout@v4
6363
- name: Install Rust
6464
uses: dtolnay/rust-toolchain@stable
65+
- name: Cache Rust dependencies
66+
uses: actions/cache@v3
67+
with:
68+
path: |
69+
~/.cargo/bin/
70+
~/.cargo/registry/index/
71+
~/.cargo/registry/cache/
72+
~/.cargo/git/db/
73+
data-access-kit-replication/target/
74+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
75+
restore-keys: |
76+
${{ runner.os }}-cargo-
6577
- uses: shivammathur/setup-php@v2
6678
with:
6779
php-version: '8.4'
@@ -88,6 +100,18 @@ jobs:
88100
- uses: actions/checkout@v4
89101
- name: Install Rust
90102
uses: dtolnay/rust-toolchain@stable
103+
- name: Cache Rust dependencies
104+
uses: actions/cache@v3
105+
with:
106+
path: |
107+
~/.cargo/bin/
108+
~/.cargo/registry/index/
109+
~/.cargo/registry/cache/
110+
~/.cargo/git/db/
111+
data-access-kit-replication/target/
112+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
113+
restore-keys: |
114+
${{ runner.os }}-cargo-
91115
- uses: adambirds/docker-compose-action@v1.5.0
92116
with:
93117
compose-file: docker-compose.yaml

0 commit comments

Comments
 (0)