ci: Add caching for flutter setup

This commit is contained in:
Krille 2023-09-05 14:48:18 +02:00
commit 34f6ff508b
No known key found for this signature in database
3 changed files with 12 additions and 1 deletions

View file

@ -13,6 +13,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- run: flutter pub get
- name: Check formatting
run: dart format lib/ test/ --set-exit-if-changed
@ -35,6 +36,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- run: flutter pub get
- run: flutter build apk --debug
@ -46,6 +48,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- run: flutter pub get
- name: Prepare web
run: ./scripts/prepare-web.sh
@ -59,6 +62,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libsecret-1-dev libsecret-1-0 librhash0 -y
- run: flutter pub get
@ -72,6 +76,7 @@ jobs:
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1.5.1
- run: flutter pub get