modify pub caching behviour
Some checks failed
Release / meta (push) Successful in 2s
Release / android-build (push) Failing after 1m9s
Release / linux-build (push) Failing after 10m30s
Release / release-dev (push) Has been skipped
Release / release-master (push) Has been skipped

This commit is contained in:
2025-12-14 13:00:39 +00:00
parent 13cd3cdf14
commit d5079fb1b1

View File

@@ -85,10 +85,13 @@ jobs:
- name: Allow all git directories (CI) - name: Allow all git directories (CI)
run: git config --global --add safe.directory '*' run: git config --global --add safe.directory '*'
- name: Set pub cache path
run: echo "PUB_CACHE=${GITHUB_WORKSPACE}/.pub-cache" >> "$GITHUB_ENV"
- name: Cache pub packages - name: Cache pub packages
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: ~/.pub-cache path: ${{ env.PUB_CACHE }}
key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }} key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }}
restore-keys: | restore-keys: |
flutter-pub-${{ runner.os }}- flutter-pub-${{ runner.os }}-
@@ -196,10 +199,13 @@ jobs:
- name: Allow all git directories (CI) - name: Allow all git directories (CI)
run: git config --global --add safe.directory '*' run: git config --global --add safe.directory '*'
- name: Set pub cache path
run: echo "PUB_CACHE=${GITHUB_WORKSPACE}/.pub-cache" >> "$GITHUB_ENV"
- name: Cache pub packages - name: Cache pub packages
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: ~/.pub-cache path: ${{ env.PUB_CACHE }}
key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }} key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }}
restore-keys: | restore-keys: |
flutter-pub-${{ runner.os }}- flutter-pub-${{ runner.os }}-