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.

This commit is contained in:
lovasoa
2025-11-08 01:25:39 +01:00
parent e8ba8f7f1a
commit d8e6a280fc
+5 -2
View File
@@ -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