Skip to content

Commit 8bf3335

Browse files
committed
Cache flutter
1 parent a28c660 commit 8bf3335

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎.github/actions/prepare/action.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ runs:
1414
with:
1515
channel: stable
1616
flutter-version: ${{ inputs.flutter_version }}
17+
cache: true
18+
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
19+
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
1720

1821
# Setup sqlite3
1922
- name: Download sqlite3

‎.github/workflows/main.yml‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,6 @@ jobs:
2626
- uses: ./.github/actions/prepare
2727
with:
2828
flutter_version: ${{ needs.setup.outputs.flutter_version }}
29-
- name: Setup Flutter
30-
uses: subosito/flutter-action@v2
31-
with:
32-
flutter-version: 3.32
33-
cache: true
34-
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
35-
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
3629
- name: Bootstrap Dart packages
3730
run: melos bootstrap --scope drift_docs,drift,app
3831
working-directory: .
@@ -286,9 +279,9 @@ jobs:
286279
needs: [setup]
287280
strategy:
288281
matrix:
289-
# We currently don't support 3.27 because we depend on a WIP build version that requires Dart 3.8.
290-
# Generally we attempt to support the latest two versions.
291-
flutter: ["3.29"]
282+
# We currently don't support <3.35.1 because we depend on melos v7, which needs Dart 3.9.0.
283+
# Generally, we try to support the latest two stable Flutter releases.
284+
flutter: ["3.35.1"]
292285

293286
steps:
294287
- uses: actions/checkout@v4

‎.github/workflows/setup.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ jobs:
5353
- name: Set up Flutter
5454
id: setup_flutter
5555
uses: subosito/flutter-action@v2
56+
with:
57+
cache: true
58+
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
59+
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
5660
- uses: actions/cache@v4
5761
with:
5862
path: "${{ env.PUB_CACHE }}"

‎drift/lib/src/runtime/manager/manager.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ class TableManagerState<
223223
withReferenceMapper: _withReferenceMapper,
224224
prefetchHooksCallback: _prefetchHooksCallback,
225225
addedColumns: addedColumns ?? this.addedColumns,
226-
prefetchedData: prefetchedDataAsTypedResult ?? this._prefetchedData,
226+
prefetchedData: prefetchedDataAsTypedResult ?? _prefetchedData,
227227
prefetchHooks: prefetchHooks ?? this.prefetchHooks,
228228
filter: filter ?? this.filter,
229229
joinBuilders: joinBuilders ?? this.joinBuilders,

0 commit comments

Comments
 (0)