From d8e6a280fc4f4df2289105c73e37cfdd753aecc7 Mon Sep 17 00:00:00 2001 From: lovasoa Date: Sat, 8 Nov 2025 01:25:39 +0100 Subject: [PATCH] Update CI configuration to use a shared cache key for Rust builds and adjust cache saving conditions. The shared key is now set to 'rust-sqlpage-proj-test' for both main and test branches, with the test branch cache saving disabled. --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a2adb79..8c11db3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,9 @@ jobs: - run: npm test - name: Set up cargo cache uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 + with: + shared-key: rust-sqlpage-proj-test + save-if: ${{ github.ref == 'refs/heads/main' }} - run: cargo fmt --all -- --check - run: cargo clippy --all-targets --all-features -- -D warnings - run: cargo test --features odbc-static @@ -61,8 +64,8 @@ jobs: - name: Set up cargo cache uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 with: - key: test-${{ matrix.database }} - save-if: ${{ github.ref == 'refs/heads/main' }} + shared-key: rust-sqlpage-proj-test + save-if: false - name: Install PostgreSQL ODBC driver if: matrix.setup_odbc run: sudo apt-get install -y odbc-postgresql