@@ -4,18 +4,14 @@ name: Flutter Engine
44on :
55 schedule :
66 - cron : 24 0/12 * * *
7- push :
8- branches :
9- - master
10- pull_request :
117 workflow_dispatch :
128
139jobs :
1410 build :
1511 strategy :
1612 fail-fast : false
1713 matrix :
18- channel : [beta, dev, master ] # , stable
14+ channel : [stable, beta ] # master
1915 config :
2016 # Debug builds not needed: fetched from Google
2117
2925 host_tag : macosx_x64
3026 - tag : host_profile
3127 gn : --embedder-for-target --runtime-mode profile --lto
32- host : windows-latest
28+ host : windows-2019
3329 host_tag : windows_x64
3430
3531 - tag : host_release
4238 host_tag : macosx_x64
4339 - tag : host_release
4440 gn : --embedder-for-target --runtime-mode release --lto --stripped
45- host : windows-latest
41+ host : windows-2019
4642 host_tag : windows_x64
4743
4844 runs-on : ${{ matrix.config.host }}
6460 sudo df -h
6561
6662 - name : Install curl (windows)
67- if : matrix.config.host == 'windows-latest '
63+ if : matrix.config.host == 'windows-2019 '
6864 run : choco install curl
6965
7066 - name : Get engine version
@@ -105,18 +101,18 @@ jobs:
105101 shell : bash
106102
107103 - 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 '
109105 uses : actions/checkout@v1
110106
111107 - 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 '
113109 run : git clone https://github.com/jslater89/flutter-rs-engine-builds.git C:\repo
114110
115- - name : Install Python 2 .x
111+ - name : Install Python 3 .x
116112 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
118114 with :
119- python-version : ' 2 .x'
115+ python-version : ' 3 .x'
120116
121117 - name : Install dependencies (ubuntu)
122118 if : steps.release_check.outputs.skip_build != 'true' && matrix.config.host == 'ubuntu-latest'
@@ -127,98 +123,98 @@ jobs:
127123 run : brew install binutils gpatch tree
128124
129125 - 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 '
131127 run : choco install patch tree zip
132128
133129 - 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 '
135131 run : ./fetch-depot-tools.sh
136132 shell : bash
137133
138134 - 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 '
140136 working-directory : C:\repo
141137 run : ./fetch-depot-tools.sh
142138 shell : bash
143139
144140 - 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 '
146142 working-directory : C:\repo
147143 run : ./fetch-engine.bat ${{ steps.get_engine_version.outputs.engine_version }}
148144
149145 - 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 '
151147 run : ./fetch-engine.sh ${{ steps.get_engine_version.outputs.engine_version }}
152148 shell : bash
153149
154150 - 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 '
156152 run : ./patch-engine.sh
157153 shell : bash
158154
159155 - 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 '
161157 working-directory : C:\repo
162158 run : ./patch-engine.sh
163159 shell : bash
164160
165161 - 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 '
167163 run : ./gn.sh ${{ matrix.config.gn }}
168164 shell : bash
169165
170166 - 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 '
172168 working-directory : C:\repo
173169 run : ./gn.sh ${{ matrix.config.gn }}
174170 shell : bash
175171
176172 - 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 '
178174 run : ./build.sh ${{ matrix.config.tag }}
179175 shell : bash
180176
181177 - 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 '
183179 working-directory : C:\repo
184180 run : ./build.sh ${{ matrix.config.tag }}
185181 shell : bash
186182
187183 - 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 '
189185 run : tree ./engine/src/out/
190186 shell : bash
191187
192188 - 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 '
194190 working-directory : C:\repo
195191 run : tree ./engine/src/out/
196192 shell : bash
197193
198194 - 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 '
200196 run : tree ./engine_out/
201197 shell : bash
202198
203199 - 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 '
205201 working-directory : C:\repo
206202 run : tree ./engine_out/
207203 shell : bash
208204
209205 - 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 '
211207 run : cd engine_out && zip -qq -r ../${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip ./*
212208 shell : bash
213209
214210 - 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 '
216212 working-directory : C:\repo
217213 run : cd engine_out && zip -qq -r ../${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip ./*
218214 shell : bash
219215
220216 - 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 '
222218 uses : softprops/action-gh-release@master
223219 env :
224220 GITHUB_TOKEN : ${{ secrets.PERMANENT_GITHUB_TOKEN }}
@@ -228,7 +224,7 @@ jobs:
228224 files : ${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip
229225
230226 - 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 '
232228 uses : softprops/action-gh-release@master
233229 env :
234230 GITHUB_TOKEN : ${{ secrets.PERMANENT_GITHUB_TOKEN }}
0 commit comments