modify pub caching behviour
This commit is contained in:
@@ -85,10 +85,13 @@ jobs:
|
||||
- name: Allow all git directories (CI)
|
||||
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
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.pub-cache
|
||||
path: ${{ env.PUB_CACHE }}
|
||||
key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }}
|
||||
restore-keys: |
|
||||
flutter-pub-${{ runner.os }}-
|
||||
@@ -196,10 +199,13 @@ jobs:
|
||||
- name: Allow all git directories (CI)
|
||||
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
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.pub-cache
|
||||
path: ${{ env.PUB_CACHE }}
|
||||
key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }}
|
||||
restore-keys: |
|
||||
flutter-pub-${{ runner.os }}-
|
||||
|
||||
Reference in New Issue
Block a user