Skip to content

Commit da0b691

Browse files
committed
ci: lock to latest version of flutter
1 parent be51165 commit da0b691

File tree

3 files changed

+18
-28
lines changed

3 files changed

+18
-28
lines changed

.github/workflows/dart.yaml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ on:
1919

2020
env:
2121
CI: true
22+
FLUTTER_VERSION: "3.16.1"
23+
FLUTTER_CHANNEL: "stable"
2224

2325
permissions:
2426
contents: read
@@ -32,9 +34,6 @@ jobs:
3234

3335
strategy:
3436
fail-fast: false
35-
matrix:
36-
flutter:
37-
- stable
3837

3938
steps:
4039
- name: 📚 Git checkout
@@ -47,7 +46,8 @@ jobs:
4746
- name: 🐦 Set up Flutter
4847
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0
4948
with:
50-
channel: "stable"
49+
flutter-version: ${{ env.FLUTTER_VERSION }}
50+
channel: ${{ env.FLUTTER_CHANNEL }}
5151
cache: true
5252
- name: 🌐 Disable analytics
5353
run: flutter --disable-analytics
@@ -66,7 +66,7 @@ jobs:
6666
lib/l10n/app_localizations.dart
6767
lib/l10n/app_localizations_*.dart
6868
lib/widgetbook.generator.*.dart
69-
key: ${{ runner.os }}-${{ matrix.flutter }}-dart-${{ hashFiles('**/build.yaml') }}
69+
key: ${{ runner.os }}-${{ env.FLUTTER_CHANNEL }}-dart-${{ hashFiles('**/build.yaml') }}
7070
- name: 🔌 Generate files
7171
run: |
7272
flutter gen-l10n
@@ -96,8 +96,6 @@ jobs:
9696
strategy:
9797
fail-fast: false
9898
matrix:
99-
flutter:
100-
- stable
10199
target:
102100
- web
103101
- appbundle
@@ -132,7 +130,8 @@ jobs:
132130
- name: 🐦 Set up Flutter
133131
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0
134132
with:
135-
channel: ${{ matrix.flutter }}
133+
flutter-version: ${{ env.FLUTTER_VERSION }}
134+
channel: ${{ env.FLUTTER_CHANNEL }}
136135
cache: true
137136
- name: 🌐 Disable analytics
138137
run: flutter --disable-analytics
@@ -152,7 +151,7 @@ jobs:
152151
# if: matrix.target == 'web'
153152
# uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
154153
# with:
155-
# name: build-directory-${{ matrix.target }}-${{ matrix.flutter}}
154+
# name: build-directory-${{ matrix.target }}-${{ env.FLUTTER_CHANNEL }}
156155
# path: ./build
157156
# if-no-files-found: error
158157

@@ -162,10 +161,6 @@ jobs:
162161
timeout-minutes: 5
163162
runs-on: ubuntu-latest
164163

165-
strategy:
166-
matrix:
167-
flutter: ["stable"]
168-
169164
steps:
170165
- name: 📚 Git checkout
171166
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -177,7 +172,8 @@ jobs:
177172
- name: 🐦 Set up Flutter
178173
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0
179174
with:
180-
channel: ${{ matrix.flutter }}
175+
flutter-version: ${{ env.FLUTTER_VERSION }}
176+
channel: ${{ env.FLUTTER_CHANNEL }}
181177
cache: true
182178
- name: 🌐 Disable analytics
183179
run: flutter --disable-analytics
@@ -201,10 +197,6 @@ jobs:
201197
timeout-minutes: 7
202198
runs-on: ubuntu-latest
203199

204-
strategy:
205-
matrix:
206-
flutter: ["stable"]
207-
208200
steps:
209201
- name: 📚 Git checkout
210202
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -216,7 +208,8 @@ jobs:
216208
- name: 🐦 Set up Flutter
217209
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0
218210
with:
219-
channel: ${{ matrix.flutter }}
211+
flutter-version: ${{ env.FLUTTER_VERSION }}
212+
channel: ${{ env.FLUTTER_CHANNEL }}
220213
cache: true
221214
- name: 🌐 Disable analytics
222215
run: flutter --disable-analytics
@@ -243,10 +236,6 @@ jobs:
243236
timeout-minutes: 3
244237
runs-on: ubuntu-latest
245238

246-
strategy:
247-
matrix:
248-
flutter: ["stable"]
249-
250239
steps:
251240
- name: 📚 Git checkout
252241
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -258,7 +247,8 @@ jobs:
258247
- name: 🐦 Set up Flutter
259248
uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0
260249
with:
261-
channel: ${{ matrix.flutter }}
250+
flutter-version: ${{ env.FLUTTER_VERSION }}
251+
channel: ${{ env.FLUTTER_CHANNEL }}
262252
cache: true
263253
- name: 🌐 Disable analytics
264254
run: flutter --disable-analytics

pubspec.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,5 +1395,5 @@ packages:
13951395
source: hosted
13961396
version: "3.1.2"
13971397
sdks:
1398-
dart: "3.2.0"
1399-
flutter: ">=3.16.0"
1398+
dart: "3.2.1"
1399+
flutter: ">=3.16.1"

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ issue_tracker: https://github.com/PSDTools/app/issues
2323
repository: https://github.com/PSDTools/app.git
2424

2525
environment:
26-
sdk: "3.2.0"
27-
flutter: "3.16.0"
26+
sdk: "3.2.1"
27+
flutter: "3.16.1"
2828

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

0 commit comments

Comments
 (0)