Skip to content

Commit

Permalink
Update flutter setup in flutter.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
twangodev committed Aug 6, 2024
1 parent 15311be commit 416a71a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/dart.yml → .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: Dart
name: Flutter

on:
push:
Expand All @@ -17,13 +17,17 @@ jobs:
- uses: actions/checkout@v4

- name: Setup Flutter SDK
uses: flutter-actions/setup-flutter@v3
uses: subosito/flutter-action@v2
with:
channel: stable
version: latest
flutter-version-file: pubspec.yaml
cache: true
cache-sdk: true
cache-key: ${{ runner.os }}-flutter-${{ hashFiles('**/pubspec.yaml') }}
# optional parameters follow
cache-key: "flutter-:os:-:channel:-:version:-:arch:-:hash:"
cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"
pub-cache-key: "flutter-pub:os:-:channel:-:version:-:arch:-:hash:"
pub-cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:"


- name: Install dependencies
run: flutter pub get
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ version: 1.0.0+1

environment:
sdk: '>=3.4.1 <4.0.0'
flutter: 3.19.0

# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
Expand Down

0 comments on commit 416a71a

Please sign in to comment.