Skip to content

Commit

Permalink
Fix stable flutter version (#227)
Browse files Browse the repository at this point in the history
* Fix stable flutter version

* Fix CI yaml error

* Fix CI yaml error

* Add flutter changes for all jobs

* Add global env variable for flutter

* Fix variable
  • Loading branch information
donpui authored Jan 25, 2023
1 parent 6c47cfc commit d53461a
Showing 1 changed file with 40 additions and 5 deletions.
45 changes: 40 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
branches:
- "main"

# https://docs.flutter.dev/development/tools/sdk/releases?tab=linux
env:
FLUTTER_VERSION: "3.3.10"
FLUTTER_BRANCH: "stable"

jobs:
android:
runs-on: ubuntu-latest
Expand All @@ -27,7 +32,13 @@ jobs:
if: ${{ github.ref_type != 'tag' }}

- name: "Setup flutter"
uses: "subosito/flutter-action@v2.4.0"
uses: subosito/flutter-action@v2
with:
# set fixed stable version, to avoid surprises, when flutter upgrades
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_BRANCH }}

- run: flutter --version

- name: "Fetch flutter dependencies"
run: "flutter pub get"
Expand Down Expand Up @@ -78,7 +89,13 @@ jobs:
if: ${{ github.ref_type != 'tag' }}

- name: "Setup flutter"
uses: "subosito/flutter-action@v2.4.0"
uses: subosito/flutter-action@v2
with:
# set fixed stable version, to avoid surprises, when flutter upgrades
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_BRANCH }}

- run: flutter --version

- name: "Fetch flutter dependencies"
run: "flutter pub get"
Expand Down Expand Up @@ -156,7 +173,13 @@ jobs:
if: ${{ github.ref_type != 'tag' }}

- name: "Setup flutter"
uses: "subosito/flutter-action@v2.4.0"
uses: subosito/flutter-action@v2
with:
# set fixed stable version, to avoid surprises, when flutter upgrades
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_BRANCH }}

- run: flutter --version

- name: "Fetch flutter dependencies"
run: "flutter pub get"
Expand Down Expand Up @@ -214,7 +237,13 @@ jobs:
if: ${{ github.ref_type != 'tag' }}

- name: "Setup flutter"
uses: "subosito/flutter-action@v2.4.0"
uses: subosito/flutter-action@v2
with:
# set fixed stable version, to avoid surprises, when flutter upgrades
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_BRANCH }}

- run: flutter --version

- name: "Fetch flutter dependencies"
run: "flutter pub get"
Expand Down Expand Up @@ -250,7 +279,13 @@ jobs:
if: ${{ github.ref_type != 'tag' }}

- name: "Setup flutter"
uses: "subosito/flutter-action@v2.4.0"
uses: subosito/flutter-action@v2
with:
# set fixed stable version, to avoid surprises, when flutter upgrades
flutter-version: ${{ env.FLUTTER_VERSION }}
channel: ${{ env.FLUTTER_BRANCH }}

- run: flutter --version

- name: "Fetch flutter dependencies"
run: "flutter pub get"
Expand Down

0 comments on commit d53461a

Please sign in to comment.