diff --git a/.github/workflows/all_plugins.yaml b/.github/workflows/all_plugins.yaml index 89e0d0d7430d..3dc43e4eb790 100644 --- a/.github/workflows/all_plugins.yaml +++ b/.github/workflows/all_plugins.yaml @@ -28,6 +28,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: melos-version: '5.3.0' @@ -46,6 +48,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: melos-version: '5.3.0' @@ -63,6 +67,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: melos-version: '5.3.0' @@ -81,6 +87,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: melos-version: '5.3.0' @@ -115,6 +123,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: melos-version: '5.3.0' @@ -133,6 +143,9 @@ jobs: - uses: subosito/flutter-action@f2c4f6686ca8e8d6e6d0f28410eeef506ed66aff with: channel: 'stable' + cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - name: Xcode run: sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer - name: Setup firebase_core example app to test Swift integration @@ -158,6 +171,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: melos-version: '5.3.0' diff --git a/.github/workflows/android.yaml b/.github/workflows/android.yaml index 2285e4b1aeec..02dca1cc1de2 100644 --- a/.github/workflows/android.yaml +++ b/.github/workflows/android.yaml @@ -66,8 +66,8 @@ jobs: with: channel: 'stable' cache: true - cache-key: flutter-${{ runner.os }} - pub-cache-key: pub-${{ runner.os }} + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false diff --git a/.github/workflows/e2e_tests_fdc.yaml b/.github/workflows/e2e_tests_fdc.yaml index 449609e7b876..2d29c3512e3a 100644 --- a/.github/workflows/e2e_tests_fdc.yaml +++ b/.github/workflows/e2e_tests_fdc.yaml @@ -60,6 +60,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - name: Setup PostgreSQL for Linux/macOS/Windows uses: ikalnytskyi/action-setup-postgres@v7 - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa @@ -164,8 +166,8 @@ jobs: with: # Must match the save path exactly path: tests/ios/Pods - key: ${{ runner.os }}-fdc-pods-v3-${{ hashFiles('tests/ios/Podfile.lock') }} - restore-keys: ${{ runner.os }}-ios-pods-v2 + key: ${{ runner.os }}-fdc-pods-${{ hashFiles('tests/pubspec.lock') }} + restore-keys: ${{ runner.os }}-fdc-pods - name: 'Install Tools' run: | sudo npm i -g firebase-tools @@ -185,6 +187,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false @@ -264,6 +268,8 @@ jobs: with: channel: 'stable' cache: true + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false @@ -319,12 +325,3 @@ jobs: key: ${{ steps.firebase-emulator-cache.outputs.cache-primary-key }} # Must match the restore path exactly path: ~/.cache/firebase/emulators - - name: Save Pods Cache - # Branches can read main cache but main cannot read branch cache. Avoid LRU eviction with main-only cache. - if: github.ref == 'refs/heads/main' - uses: actions/cache/save@1bd1e32a3bdc45362d1e726936510720a7c30a57 - continue-on-error: true - with: - key: ${{ steps.pods-cache.outputs.cache-primary-key }} - # Must match the restore paths exactly - path: tests/ios/Pods diff --git a/.github/workflows/ios.yaml b/.github/workflows/ios.yaml index 1c7d5b058e73..ee58e942eaf8 100644 --- a/.github/workflows/ios.yaml +++ b/.github/workflows/ios.yaml @@ -58,8 +58,8 @@ jobs: with: # Must match the save path exactly path: tests/ios/Pods - key: pods-v3-${{ runner.os }}-${{ hashFiles('tests/ios/Podfile.lock') }} - restore-keys: pods-v3-${{ runner.os }} + key: pods-v3-${{ runner.os }}-ios-${{ hashFiles('tests/pubspec.lock') }} + restore-keys: pods-v3-${{ runner.os }}-ios - name: 'Install Tools' run: | sudo npm i -g firebase-tools @@ -79,8 +79,8 @@ jobs: with: channel: 'stable' cache: true - cache-key: flutter-${{ runner.os }} - pub-cache-key: pub-${{ runner.os }} + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index bd18ffe0d2b1..cdcb9f44c027 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -56,8 +56,8 @@ jobs: with: # Must match the save path exactly path: tests/macos/Pods - key: pods-v3-${{ runner.os }}-${{ hashFiles('tests/macos/Podfile.lock') }} - restore-keys: pods-v3-${{ runner.os }} + key: pods-v3-${{ runner.os }}-macos-${{ hashFiles('tests/pubspec.lock') }} + restore-keys: pods-v3-${{ runner.os }}-macos - name: 'Install Tools' run: | sudo npm i -g firebase-tools @@ -77,8 +77,8 @@ jobs: with: channel: 'stable' cache: true - cache-key: flutter-${{ runner.os }} - pub-cache-key: pub-${{ runner.os }} + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false @@ -126,4 +126,4 @@ jobs: with: key: ${{ steps.pods-cache.outputs.cache-primary-key }} # Must match the restore paths exactly - path: tests/ios/Pods + path: tests/macos/Pods diff --git a/.github/workflows/web.yaml b/.github/workflows/web.yaml index 4cd794da7197..84070e8db91a 100644 --- a/.github/workflows/web.yaml +++ b/.github/workflows/web.yaml @@ -47,8 +47,8 @@ jobs: with: channel: 'stable' cache: true - cache-key: flutter-${{ runner.os }} - pub-cache-key: pub-${{ runner.os }} + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false @@ -117,8 +117,8 @@ jobs: with: channel: 'stable' cache: true - cache-key: flutter-${{ runner.os }} - pub-cache-key: pub-${{ runner.os }} + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false @@ -192,8 +192,8 @@ jobs: with: channel: 'stable' cache: true - cache-key: flutter-${{ runner.os }} - pub-cache-key: pub-${{ runner.os }} + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false diff --git a/.github/workflows/windows.yaml b/.github/workflows/windows.yaml index 01c2ece1fb06..025ae1cdfe5f 100644 --- a/.github/workflows/windows.yaml +++ b/.github/workflows/windows.yaml @@ -42,8 +42,8 @@ jobs: with: channel: 'stable' cache: true - cache-key: flutter-${{ runner.os }} - pub-cache-key: pub-${{ runner.os }} + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false @@ -74,8 +74,8 @@ jobs: with: channel: 'stable' cache: true - cache-key: flutter-${{ runner.os }} - pub-cache-key: pub-${{ runner.os }} + cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:" + pub-cache-key: "flutter-pub-:os:-:channel:-:version:-:arch:-:hash:" - uses: bluefireteam/melos-action@c7dcb921b23cc520cace360b95d02b37bf09cdaa with: run-bootstrap: false