Skip to content

Commit 9ad7d71

Browse files
cursoragentlovasoa
andcommitted
feat: Cache Rust build artifacts only on main branch
Co-authored-by: contact <contact@ophir.dev>
1 parent be317d9 commit 9ad7d71

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
6363
with:
6464
key: test-${{ matrix.database }}
65+
save-if: ${{ github.ref == 'refs/heads/main' }}
6566
- name: Install PostgreSQL ODBC driver
6667
if: matrix.setup_odbc
6768
run: sudo apt-get install -y odbc-postgresql

0 commit comments

Comments
 (0)