Skip to content

Commit

Permalink
ci: specify Flutter version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Merrit committed Jun 10, 2024
1 parent 7c465d3 commit a1f7a80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ jobs:
run: echo "prerelease=true" >> $GITHUB_ENV

- name: Setup Flutter
uses: subosito/[email protected]
uses: subosito/[email protected]
# Specify the Flutter version to work around bug in new version:
# https://github.com/flutter/flutter/issues/144873
with:
flutter-version: '3.19.6'

- name: Checkout code
uses: actions/checkout@v3

- name: Prepare for build
run: |
flutter config --enable-linux-desktop
flutter upgrade
flutter pub get
# ----------------------------------- Build ---------------------------- #
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,18 @@ jobs:
run: echo "prerelease=true" >> $GITHUB_ENV

- name: Setup Flutter
uses: subosito/[email protected]
uses: subosito/[email protected]
# Specify the Flutter version to work around bug in new version:
# https://github.com/flutter/flutter/issues/144873
with:
flutter-version: '3.19.6'

- name: Checkout code
uses: actions/checkout@v3

- name: Prepare for build
run: |
flutter config --enable-windows-desktop
flutter upgrade
flutter pub get
# ----------------------------------- Build ---------------------------- #
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: subosito/[email protected]
# Specify the Flutter version to work around bug in new version:
# https://github.com/flutter/flutter/issues/144873
with:
flutter-version: '3.19.6'

- name: Get Linux dependencies
if: runner.os == 'Linux'
Expand All @@ -26,7 +30,6 @@ jobs:
- name: Setup
run: |
flutter upgrade
flutter pub get
- name: Verify formatting
Expand Down

0 comments on commit a1f7a80

Please sign in to comment.