flutter fixes and pipeline speedup
This commit is contained in:
@@ -52,6 +52,14 @@ jobs:
|
||||
distribution: temurin
|
||||
java-version: ${{ env.JAVA_VERSION }}
|
||||
|
||||
- name: Cache Android SDK
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ${{ env.ANDROID_SDK_ROOT }}
|
||||
key: android-sdk-${{ runner.os }}-java${{ env.JAVA_VERSION }}-platform33-buildtools33.0.2
|
||||
restore-keys: |
|
||||
android-sdk-${{ runner.os }}-java${{ env.JAVA_VERSION }}-
|
||||
|
||||
- name: Install Android SDK
|
||||
run: |
|
||||
mkdir -p "$ANDROID_SDK_ROOT"/cmdline-tools
|
||||
@@ -74,10 +82,29 @@ jobs:
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: ${{ env.FLUTTER_CHANNEL }}
|
||||
cache: true
|
||||
|
||||
- name: Allow all git directories (CI)
|
||||
run: git config --global --add safe.directory '*'
|
||||
|
||||
- name: Cache pub packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.pub-cache
|
||||
key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }}
|
||||
restore-keys: |
|
||||
flutter-pub-${{ runner.os }}-
|
||||
|
||||
- name: Cache Gradle
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
~/.gradle/caches
|
||||
~/.gradle/wrapper
|
||||
key: gradle-${{ runner.os }}-${{ hashFiles('android/**/*.gradle*', 'android/**/*.properties') }}
|
||||
restore-keys: |
|
||||
gradle-${{ runner.os }}-
|
||||
|
||||
- name: Flutter dependencies
|
||||
run: flutter pub get
|
||||
|
||||
@@ -160,10 +187,19 @@ jobs:
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: ${{ env.FLUTTER_CHANNEL }}
|
||||
cache: true
|
||||
|
||||
- name: Allow all git directories (CI)
|
||||
run: git config --global --add safe.directory '*'
|
||||
|
||||
- name: Cache pub packages
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: ~/.pub-cache
|
||||
key: flutter-pub-${{ runner.os }}-${{ hashFiles('pubspec.lock') }}
|
||||
restore-keys: |
|
||||
flutter-pub-${{ runner.os }}-
|
||||
|
||||
- name: Flutter dependencies
|
||||
run: flutter pub get
|
||||
|
||||
|
||||
Reference in New Issue
Block a user