Skip to content

Commit d8e6a28

Browse files
committed
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.
1 parent e8ba8f7 commit d8e6a28

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- run: npm test
3030
- name: Set up cargo cache
3131
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
32+
with:
33+
shared-key: rust-sqlpage-proj-test
34+
save-if: ${{ github.ref == 'refs/heads/main' }}
3235
- run: cargo fmt --all -- --check
3336
- run: cargo clippy --all-targets --all-features -- -D warnings
3437
- run: cargo test --features odbc-static
@@ -61,8 +64,8 @@ jobs:
6164
- name: Set up cargo cache
6265
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
6366
with:
64-
key: test-${{ matrix.database }}
65-
save-if: ${{ github.ref == 'refs/heads/main' }}
67+
shared-key: rust-sqlpage-proj-test
68+
save-if: false
6669
- name: Install PostgreSQL ODBC driver
6770
if: matrix.setup_odbc
6871
run: sudo apt-get install -y odbc-postgresql

0 commit comments

Comments
 (0)