Skip to content

Commit 74cc60e

Browse files
committed
Cache hook output
1 parent e243e31 commit 74cc60e

1 file changed

Lines changed: 12 additions & 14 deletions

File tree

.github/workflows/tests.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -121,19 +121,17 @@ jobs:
121121

122122
- uses: dart-lang/setup-dart@v1
123123

124-
- uses: actions/cache@v4
125-
id: sqlite_build
126-
with:
127-
path: dart/.dart_tool/sqlite3/
128-
key: ${{ matrix.os }}-${{ hashFiles('dart/tool/') }}
129-
130124
- name: Setup Dart tests
131125
working-directory: dart
132126
run: |
133127
dart pub get
134-
dart run tool/download_old_sqlite3.dart
135128
dart analyze
136-
129+
- uses: actions/cache@v4
130+
with:
131+
path: dart/.dart_tool/hooks_runner/
132+
key: hooks-${{ matrix.os }}-${{ hashFiles('dart/pubspec.lock') }}
133+
restore-keys: hooks-${{ matrix.os }}
134+
137135
- name: Download libs
138136
uses: actions/download-artifact@v5
139137
with:
@@ -170,18 +168,18 @@ jobs:
170168
- name: Install Rust Stable
171169
uses: dtolnay/rust-toolchain@stable
172170

173-
- uses: actions/cache@v4
174-
id: sqlite_build
175-
with:
176-
path: dart/.dart_tool/sqlite3/
177-
key: ${{ matrix.os }}-${{ hashFiles('dart/tool/') }}
178-
179171
- name: Setup Dart tests
180172
working-directory: dart
181173
run: |
182174
dart pub get
183175
dart analyze
184176
177+
- uses: actions/cache@v4
178+
with:
179+
path: dart/.dart_tool/hooks_runner/
180+
key: hooks-${{ matrix.os }}-${{ hashFiles('dart/pubspec.lock') }}
181+
restore-keys: hooks-${{ matrix.os }}
182+
185183
- name: Compile with stable Rust
186184
run: |
187185
cargo +stable build -p powersync_loadable

0 commit comments

Comments
 (0)