Skip to content

Commit 26de268

Browse files
Merge pull request #10 from strvcom/mu/chore/git_cache
fix: Flutter caching issues in GitHub actions
2 parents 382705f + 5dafc0c commit 26de268

5 files changed

Lines changed: 15 additions & 17 deletions

.github/workflows/android_firebase_app_distribution_develop.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ jobs:
3333
distribution: 'zulu'
3434
java-version: ${{ env.java_version }}
3535

36-
- name: '[Setup - Flutter Actions with Cache]'
36+
# Install Flutter SDK
37+
- name: '[Setup - Flutter SDK]'
3738
uses: subosito/flutter-action@v2
3839
with:
3940
channel: 'stable'
4041
flutter-version: ${{ env.flutter_version }}
41-
cache: true
42+
cache: false
4243
architecture: x64
43-
cache-key: 'flutter-:os:-:channel:-:version:-:arch:'
44-
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
4544

4645
# Make sure we have latest FVM
4746
- name: '[FVM - Install]'

.github/workflows/android_firebase_app_distribution_production.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ jobs:
3333
distribution: 'zulu'
3434
java-version: ${{ env.java_version }}
3535

36-
- name: '[Setup - Flutter Actions with Cache]'
36+
# Install Flutter SDK
37+
- name: '[Setup - Flutter SDK]'
3738
uses: subosito/flutter-action@v2
3839
with:
3940
channel: 'stable'
4041
flutter-version: ${{ env.flutter_version }}
41-
cache: true
42+
cache: false
4243
architecture: x64
43-
cache-key: 'flutter-:os:-:channel:-:version:-:arch:'
44-
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
4544

4645
# Make sure we have latest FVM
4746
- name: '[FVM - Install]'

.github/workflows/android_firebase_app_distribution_staging.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,13 @@ jobs:
3333
distribution: 'zulu'
3434
java-version: ${{ env.java_version }}
3535

36-
- name: '[Setup - Flutter Actions with Cache]'
36+
# Install Flutter SDK
37+
- name: '[Setup - Flutter SDK]'
3738
uses: subosito/flutter-action@v2
3839
with:
3940
channel: 'stable'
4041
flutter-version: ${{ env.flutter_version }}
42+
cache: false
4143
architecture: x64
4244

4345
# Make sure we have latest FVM

.github/workflows/android_play_store_distribution.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,14 @@ jobs:
3333
distribution: 'zulu'
3434
java-version: ${{ env.java_version }}
3535

36-
- name: '[Setup - Flutter Actions with Cache]'
36+
# Install Flutter SDK
37+
- name: '[Setup - Flutter SDK]'
3738
uses: subosito/flutter-action@v2
3839
with:
3940
channel: 'stable'
4041
flutter-version: ${{ env.flutter_version }}
41-
cache: true
42+
cache: false
4243
architecture: x64
43-
cache-key: 'flutter-:os:-:channel:-:version:-:arch:'
44-
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
4544

4645
# Make sure we have latest FVM
4746
- name: '[FVM - Install]'

.github/workflows/flutter_project_codecheck_android.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ jobs:
3232
distribution: 'zulu'
3333
java-version: ${{ env.java_version }}
3434

35-
- name: '[Setup - Flutter Actions with Cache]'
35+
# Install Flutter SDK
36+
- name: '[Setup - Flutter SDK]'
3637
uses: subosito/flutter-action@v2
3738
with:
3839
channel: 'stable'
3940
flutter-version: ${{ env.flutter_version }}
40-
cache: true
41+
cache: false
4142
architecture: x64
42-
cache-key: 'flutter-:os:-:channel:-:version:-:arch:'
43-
cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:'
4443

4544
# Make sure we have latest FVM
4645
- name: '[FVM - Install]'

0 commit comments

Comments
 (0)