Skip to content

Commit a17eecb

Browse files
committed
Dev: Cache more stuff in workflows
1 parent 7adc1d7 commit a17eecb

File tree

7 files changed

+40
-8
lines changed

7 files changed

+40
-8
lines changed

.github/workflows/android-play-store.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ jobs:
2626
uses: actions/cache@v4
2727
with:
2828
path: |
29-
build
29+
.dart_tool/
30+
build/
31+
.flutter-plugins
32+
.flutter-plugins-dependencies
33+
pubspec.lock
3034
key: ${{ runner.OS }}-saber-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
3135
restore-keys: |
3236
${{ runner.OS }}-saber-

.github/workflows/android.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ jobs:
2828
uses: actions/cache@v4
2929
with:
3030
path: |
31-
build
31+
.dart_tool/
32+
build/
33+
.flutter-plugins
34+
.flutter-plugins-dependencies
35+
pubspec.lock
3236
key: ${{ runner.OS }}-saber-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
3337
restore-keys: |
3438
${{ runner.OS }}-saber-
@@ -105,7 +109,11 @@ jobs:
105109
uses: actions/cache@v4
106110
with:
107111
path: |
108-
build
112+
.dart_tool/
113+
build/
114+
.flutter-plugins
115+
.flutter-plugins-dependencies
116+
pubspec.lock
109117
key: ${{ runner.OS }}-saberfoss-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
110118
restore-keys: |
111119
${{ runner.OS }}-saberfoss-

.github/workflows/ios.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ jobs:
3232
uses: actions/cache@v4
3333
with:
3434
path: |
35-
build
35+
.dart_tool/
36+
build/
37+
.flutter-plugins
38+
.flutter-plugins-dependencies
39+
pubspec.lock
3640
key: ${{ runner.OS }}-saber-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
3741
restore-keys: |
3842
${{ runner.OS }}-saber-

.github/workflows/linux.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343
uses: actions/cache@v4
4444
with:
4545
path: |
46-
build
46+
.dart_tool/
47+
build/
48+
.flutter-plugins
49+
.flutter-plugins-dependencies
50+
pubspec.lock
4751
key: ${{ runner.OS }}-${{ matrix.arch.cache-name }}-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
4852
restore-keys: |
4953
${{ runner.OS }}-${{ matrix.arch.cache-name }}-

.github/workflows/macos.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ jobs:
3232
uses: actions/cache@v4
3333
with:
3434
path: |
35-
build
35+
.dart_tool/
36+
build/
37+
.flutter-plugins
38+
.flutter-plugins-dependencies
39+
pubspec.lock
3640
key: ${{ runner.OS }}-saber-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
3741
restore-keys: |
3842
${{ runner.OS }}-saber-

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ jobs:
2222
uses: actions/cache@v4
2323
with:
2424
path: |
25-
build
25+
.dart_tool/
26+
build/
27+
.flutter-plugins
28+
.flutter-plugins-dependencies
29+
pubspec.lock
2630
key: ${{ runner.OS }}-saber-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
2731
restore-keys: |
2832
${{ runner.OS }}-saber-

.github/workflows/windows.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ jobs:
2727
uses: actions/cache@v4
2828
with:
2929
path: |
30-
build
30+
.dart_tool/
31+
build/
32+
.flutter-plugins
33+
.flutter-plugins-dependencies
34+
pubspec.lock
3135
key: ${{ runner.OS }}-saber-${{ hashFiles('**/pubspec.lock') }}-${{ hashFiles('**/*.dart') }}
3236
restore-keys: |
3337
${{ runner.OS }}-saber-

0 commit comments

Comments
 (0)