Skip to content

Commit aab67ce

Browse files
lovasoacursoragent
andcommitted
Fix github pr ci cache warnings (#1086)
* feat: Add shared-key to cargo cache action Co-authored-by: contact <[email protected]> * Refactor: Use matrix-specific cache key in CI Co-authored-by: contact <[email protected]> * feat: Cache Rust build artifacts only on main branch Co-authored-by: contact <[email protected]> --------- Co-authored-by: Cursor Agent <[email protected]>
1 parent 92cd4de commit aab67ce

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ jobs:
6060
- uses: actions/checkout@v4
6161
- name: Set up cargo cache
6262
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
63+
with:
64+
key: test-${{ matrix.database }}
65+
save-if: ${{ github.ref == 'refs/heads/main' }}
6366
- name: Install PostgreSQL ODBC driver
6467
if: matrix.setup_odbc
6568
run: sudo apt-get install -y odbc-postgresql

0 commit comments

Comments
 (0)