From fa6217c3e267bccc4b3448ab629ec363965c2215 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 6 Nov 2025 09:11:10 +0000 Subject: [PATCH 1/3] feat: Add shared-key to cargo cache action Co-authored-by: contact --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47625c5d..3c8954a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -60,6 +60,8 @@ jobs: - uses: actions/checkout@v4 - name: Set up cargo cache uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 + with: + shared-key: test-matrix - name: Install PostgreSQL ODBC driver if: matrix.setup_odbc run: sudo apt-get install -y odbc-postgresql From be317d99c5f2429260e9c4509332f8e11361c7a6 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 6 Nov 2025 14:12:03 +0000 Subject: [PATCH 2/3] Refactor: Use matrix-specific cache key in CI Co-authored-by: contact --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c8954a5..dae3255d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,7 +61,7 @@ jobs: - name: Set up cargo cache uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 with: - shared-key: test-matrix + key: test-${{ matrix.database }} - name: Install PostgreSQL ODBC driver if: matrix.setup_odbc run: sudo apt-get install -y odbc-postgresql From 9ad7d71ed17192fd35aa9bf29d303f3837bcad79 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 6 Nov 2025 14:13:02 +0000 Subject: [PATCH 3/3] feat: Cache Rust build artifacts only on main branch Co-authored-by: contact --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dae3255d..4a2adb79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,6 +62,7 @@ jobs: uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 with: key: test-${{ matrix.database }} + save-if: ${{ github.ref == 'refs/heads/main' }} - name: Install PostgreSQL ODBC driver if: matrix.setup_odbc run: sudo apt-get install -y odbc-postgresql