@@ -4,18 +4,14 @@ name: Flutter Engine
4
4
on :
5
5
schedule :
6
6
- cron : 24 0/12 * * *
7
- push :
8
- branches :
9
- - master
10
- pull_request :
11
7
workflow_dispatch :
12
8
13
9
jobs :
14
10
build :
15
11
strategy :
16
12
fail-fast : false
17
13
matrix :
18
- channel : [beta, dev, master ] # , stable
14
+ channel : [stable, beta ] # master
19
15
config :
20
16
# Debug builds not needed: fetched from Google
21
17
29
25
host_tag : macosx_x64
30
26
- tag : host_profile
31
27
gn : --embedder-for-target --runtime-mode profile --lto
32
- host : windows-latest
28
+ host : windows-2019
33
29
host_tag : windows_x64
34
30
35
31
- tag : host_release
42
38
host_tag : macosx_x64
43
39
- tag : host_release
44
40
gn : --embedder-for-target --runtime-mode release --lto --stripped
45
- host : windows-latest
41
+ host : windows-2019
46
42
host_tag : windows_x64
47
43
48
44
runs-on : ${{ matrix.config.host }}
64
60
sudo df -h
65
61
66
62
- name : Install curl (windows)
67
- if : matrix.config.host == 'windows-latest '
63
+ if : matrix.config.host == 'windows-2019 '
68
64
run : choco install curl
69
65
70
66
- name : Get engine version
@@ -105,18 +101,18 @@ jobs:
105
101
shell : bash
106
102
107
103
- name : Checkout
108
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
104
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
109
105
uses : actions/checkout@v1
110
106
111
107
- name : Checkout (windows)
112
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
108
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
113
109
run : git clone https://github.com/jslater89/flutter-rs-engine-builds.git C:\repo
114
110
115
- - name : Install Python 2 .x
111
+ - name : Install Python 3 .x
116
112
if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'macos-latest'
117
- uses : actions/setup-python@v1
113
+ uses : actions/setup-python@v2
118
114
with :
119
- python-version : ' 2 .x'
115
+ python-version : ' 3 .x'
120
116
121
117
- name : Install dependencies (ubuntu)
122
118
if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'ubuntu-latest'
@@ -127,98 +123,98 @@ jobs:
127
123
run : brew install binutils gpatch tree
128
124
129
125
- name : Install dependencies (windows)
130
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
126
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
131
127
run : choco install patch tree zip
132
128
133
129
- name : Install depot tools
134
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
130
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
135
131
run : ./fetch-depot-tools.sh
136
132
shell : bash
137
133
138
134
- name : Install depot tools (windows)
139
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
135
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
140
136
working-directory : C:\repo
141
137
run : ./fetch-depot-tools.sh
142
138
shell : bash
143
139
144
140
- name : Download engine (windows)
145
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
141
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
146
142
working-directory : C:\repo
147
143
run : ./fetch-engine.bat ${{ steps.get_engine_version.outputs.engine_version }}
148
144
149
145
- name : Download engine (macos + ubuntu)
150
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
146
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
151
147
run : ./fetch-engine.sh ${{ steps.get_engine_version.outputs.engine_version }}
152
148
shell : bash
153
149
154
150
- name : Patch
155
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
151
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
156
152
run : ./patch-engine.sh
157
153
shell : bash
158
154
159
155
- name : Patch (windows)
160
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
156
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
161
157
working-directory : C:\repo
162
158
run : ./patch-engine.sh
163
159
shell : bash
164
160
165
161
- name : Generate config
166
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
162
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
167
163
run : ./gn.sh ${{ matrix.config.gn }}
168
164
shell : bash
169
165
170
166
- name : Generate config (windows)
171
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
167
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
172
168
working-directory : C:\repo
173
169
run : ./gn.sh ${{ matrix.config.gn }}
174
170
shell : bash
175
171
176
172
- name : Build
177
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
173
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
178
174
run : ./build.sh ${{ matrix.config.tag }}
179
175
shell : bash
180
176
181
177
- name : Build (windows)
182
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
178
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
183
179
working-directory : C:\repo
184
180
run : ./build.sh ${{ matrix.config.tag }}
185
181
shell : bash
186
182
187
183
- name : Print out tree
188
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
184
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
189
185
run : tree ./engine/src/out/
190
186
shell : bash
191
187
192
188
- name : Print out tree (windows)
193
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
189
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
194
190
working-directory : C:\repo
195
191
run : tree ./engine/src/out/
196
192
shell : bash
197
193
198
194
- name : Print release tree
199
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
195
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
200
196
run : tree ./engine_out/
201
197
shell : bash
202
198
203
199
- name : Print release tree (windows)
204
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
200
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
205
201
working-directory : C:\repo
206
202
run : tree ./engine_out/
207
203
shell : bash
208
204
209
205
- name : Create release zip
210
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-latest '
206
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host != 'windows-2019 '
211
207
run : cd engine_out && zip -qq -r ../${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip ./*
212
208
shell : bash
213
209
214
210
- name : Create release zip (windows)
215
- if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-latest '
211
+ if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'windows-2019 '
216
212
working-directory : C:\repo
217
213
run : cd engine_out && zip -qq -r ../${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip ./*
218
214
shell : bash
219
215
220
216
- name : Upload release asset
221
- if : steps.release_check.outputs.skip_build != 'true' && github.event_name != 'pull_request' && matrix.config.host != 'windows-latest '
217
+ if : steps.release_check.outputs.skip_build != 'true' && github.event_name != 'pull_request' && matrix.config.host != 'windows-2019 '
222
218
uses : softprops/action-gh-release@master
223
219
env :
224
220
GITHUB_TOKEN : ${{ secrets.PERMANENT_GITHUB_TOKEN }}
@@ -228,7 +224,7 @@ jobs:
228
224
files : ${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip
229
225
230
226
- name : Upload release asset (windows)
231
- if : steps.release_check.outputs.skip_build != 'true' && github.event_name != 'pull_request' && matrix.config.host == 'windows-latest '
227
+ if : steps.release_check.outputs.skip_build != 'true' && github.event_name != 'pull_request' && matrix.config.host == 'windows-2019 '
232
228
uses : softprops/action-gh-release@master
233
229
env :
234
230
GITHUB_TOKEN : ${{ secrets.PERMANENT_GITHUB_TOKEN }}
0 commit comments