@@ -157,12 +157,17 @@ jobs:
157
157
with :
158
158
channel : ' stable'
159
159
160
+ # Enable platform support
161
+ - name : Enable macOS
162
+ run : flutter config --enable-macos-desktop
163
+ working-directory : ${{env.source-directory}}
164
+
160
165
# Download all Flutter packages
161
166
- name : Download dependencies
162
167
run : flutter pub get
163
168
working-directory : ${{env.source-directory}}
164
169
165
- # Build iOS version of the example App
170
+ # Build macOS version of the example App
166
171
- name : Run macOS build
167
172
run : flutter build macos --release
168
173
working-directory : ${{env.example-directory}}
@@ -187,13 +192,18 @@ jobs:
187
192
with :
188
193
channel : ' stable'
189
194
195
+ # Enable platform support
196
+ - name : Enable Windows
197
+ run : flutter config --enable-windows-desktop
198
+ working-directory : ${{env.source-directory}}
199
+
190
200
# Download all Flutter packages
191
201
- name : Download dependencies
192
202
run : flutter pub get
193
203
working-directory : ${{env.source-directory}}
194
204
195
205
# Build iOS version of the example App
196
- - name : Run macOS build
206
+ - name : Run Windows build
197
207
run : flutter build windows --release
198
208
working-directory : ${{env.example-directory}}
199
209
@@ -217,13 +227,18 @@ jobs:
217
227
with :
218
228
channel : ' stable'
219
229
230
+ # Enable platform support
231
+ - name : Enable Linux
232
+ run : flutter config --enable-linux-desktop
233
+ working-directory : ${{env.source-directory}}
234
+
220
235
# Download all Flutter packages
221
236
- name : Download dependencies
222
237
run : flutter pub get
223
238
working-directory : ${{env.source-directory}}
224
239
225
240
# Build iOS version of the example App
226
- - name : Run macOS build
241
+ - name : Run Linux build
227
242
run : flutter build linux --release
228
243
working-directory : ${{env.example-directory}}
229
244
0 commit comments