15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout Repository
18
- uses : actions/checkout@v4
18
+ uses : actions/checkout@v5
19
19
- name : Setup Flutter
20
20
uses : subosito/flutter-action@v2
21
21
with :
30
30
runs-on : ubuntu-latest
31
31
steps :
32
32
- name : Checkout Repository
33
- uses : actions/checkout@v4
33
+ uses : actions/checkout@v5
34
34
- name : Setup Flutter Environment
35
35
uses : subosito/flutter-action@v2
36
36
with :
@@ -46,44 +46,54 @@ jobs:
46
46
run-tests :
47
47
name : " Run Tests"
48
48
runs-on : ubuntu-latest
49
+ strategy :
50
+ fail-fast : false
51
+ matrix :
52
+ sdk : [ '3.27.0', '' ]
49
53
steps :
50
54
- name : Checkout Repository
51
- uses : actions/checkout@v4
55
+ uses : actions/checkout@v5
52
56
- name : Setup Flutter Environment
53
57
uses : subosito/flutter-action@v2
54
58
with :
55
- channel : " stable "
59
+ flutter-version : ${{ matrix.sdk }}
56
60
cache : true
57
61
- name : Run Tests with Coverage
58
62
run : flutter test -r expanded --coverage
59
63
- name : Run Codecov
64
+ if : ${{ matrix.sdk == '' }}
60
65
uses : codecov/codecov-action@v5
61
66
env :
62
67
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
63
68
64
69
build-android :
65
70
name : " Build Android Example App"
66
71
runs-on : ubuntu-latest
72
+ strategy :
73
+ fail-fast : false
74
+ matrix :
75
+ sdk : [ '3.27.0', '' ]
67
76
defaults :
68
77
run :
69
78
working-directory : ./example
70
79
steps :
71
80
- name : Checkout Repository
72
- uses : actions/checkout@v4
81
+ uses : actions/checkout@v5
73
82
- name : Setup Java 21 Environment
74
- uses : actions/setup-java@v4
83
+ uses : actions/setup-java@v5
75
84
with :
76
85
distribution : " temurin"
77
86
java-version : " 21"
78
87
cache : ' gradle'
79
88
- name : Setup Flutter Environment
80
89
uses : subosito/flutter-action@v2
81
90
with :
82
- channel : " stable "
91
+ flutter-version : ${{ matrix.sdk }}
83
92
cache : true
84
93
- name : Build Android Application
85
94
run : flutter build apk --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
86
95
- name : Archive Artifact
96
+ if : ${{ matrix.sdk == '' }}
87
97
uses : actions/upload-artifact@v4
88
98
with :
89
99
name : apk-build
@@ -93,23 +103,32 @@ jobs:
93
103
build-windows :
94
104
name : " Build Windows Example App"
95
105
runs-on : windows-latest
106
+ strategy :
107
+ fail-fast : false
108
+ matrix :
109
+ sdk : [ '3.27.0', '' ]
96
110
defaults :
97
111
run :
98
112
working-directory : ./example
99
113
steps :
100
114
- name : Checkout Repository
101
- uses : actions/checkout@v4
115
+ uses : actions/checkout@v5
102
116
- name : Setup Flutter Environment
103
117
uses : subosito/flutter-action@v2
104
118
with :
105
- channel : " stable "
119
+ flutter-version : ${{ matrix.sdk }}
106
120
cache : true
107
121
- name : Build Windows Application
108
122
run : flutter build windows --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
123
+ - name : Install Inno Setup
124
+ if : ${{ matrix.sdk == '' }}
125
+ run : choco install innosetup --yes --no-progress
109
126
- name : Create Windows Application Installer
127
+ if : ${{ matrix.sdk == '' }}
110
128
run : iscc "windowsApplicationInstallerSetup.iss"
111
129
working-directory : .
112
130
- name : Archive Artifact
131
+ if : ${{ matrix.sdk == '' }}
113
132
uses : actions/upload-artifact@v4
114
133
with :
115
134
name : exe-build
@@ -119,21 +138,26 @@ jobs:
119
138
build-web :
120
139
name : " Build Web Example App"
121
140
runs-on : ubuntu-latest
141
+ strategy :
142
+ fail-fast : false
143
+ matrix :
144
+ sdk : [ '3.27.0', '' ]
122
145
defaults :
123
146
run :
124
147
working-directory : ./example
125
148
steps :
126
149
- name : Checkout Repository
127
- uses : actions/checkout@v4
150
+ uses : actions/checkout@v5
128
151
- name : Setup Flutter Environment
129
152
uses : subosito/flutter-action@v2
130
153
with :
131
- channel : " stable "
154
+ flutter-version : ${{ matrix.sdk }}
132
155
cache : true
133
156
- name : Build Web Application
134
157
run : flutter build web --wasm --dart-define=COMMIT_SHA=${{ github.sha }} --dart-define=flutter.flutter_map.unblockOSM="${{ secrets.UNBLOCK_OSM }}"
135
158
- name : Archive Artifact
136
159
uses : actions/upload-artifact@v4
160
+ if : ${{ matrix.sdk == '' }}
137
161
with :
138
162
name : web-build
139
163
path : example/build/web
0 commit comments