Skip to content

Commit 74c6be1

Browse files
committed
modify windows version
1 parent 892f82f commit 74c6be1

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
host_tag: macosx_x64
2626
- tag: host_profile
2727
gn: --embedder-for-target --runtime-mode profile --lto
28-
host: windows-latest
28+
host: windows-2019
2929
host_tag: windows_x64
3030

3131
- tag: host_release
@@ -38,7 +38,7 @@ jobs:
3838
host_tag: macosx_x64
3939
- tag: host_release
4040
gn: --embedder-for-target --runtime-mode release --lto --stripped
41-
host: windows-latest
41+
host: windows-2019
4242
host_tag: windows_x64
4343

4444
runs-on: ${{ matrix.config.host }}
@@ -60,7 +60,7 @@ jobs:
6060
sudo df -h
6161
6262
- name: Install curl (windows)
63-
if: matrix.config.host == 'windows-latest'
63+
if: matrix.config.host == 'windows-2019'
6464
run: choco install curl
6565

6666
- name: Get engine version
@@ -101,11 +101,11 @@ jobs:
101101
shell: bash
102102

103103
- name: Checkout
104-
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'
105105
uses: actions/checkout@v1
106106

107107
- name: Checkout (windows)
108-
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'
109109
run: git clone https://github.com/jslater89/flutter-rs-engine-builds.git C:\repo
110110

111111
- name: Install Python 3.x
@@ -123,98 +123,98 @@ jobs:
123123
run: brew install binutils gpatch tree
124124

125125
- name: Install dependencies (windows)
126-
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'
127127
run: choco install patch tree zip
128128

129129
- name: Install depot tools
130-
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'
131131
run: ./fetch-depot-tools.sh
132132
shell: bash
133133

134134
- name: Install depot tools (windows)
135-
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'
136136
working-directory: C:\repo
137137
run: ./fetch-depot-tools.sh
138138
shell: bash
139139

140140
- name: Download engine (windows)
141-
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'
142142
working-directory: C:\repo
143143
run: ./fetch-engine.bat ${{ steps.get_engine_version.outputs.engine_version }}
144144

145145
- name: Download engine (macos + ubuntu)
146-
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'
147147
run: ./fetch-engine.sh ${{ steps.get_engine_version.outputs.engine_version }}
148148
shell: bash
149149

150150
- name: Patch
151-
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'
152152
run: ./patch-engine.sh
153153
shell: bash
154154

155155
- name: Patch (windows)
156-
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'
157157
working-directory: C:\repo
158158
run: ./patch-engine.sh
159159
shell: bash
160160

161161
- name: Generate config
162-
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'
163163
run: ./gn.sh ${{ matrix.config.gn }}
164164
shell: bash
165165

166166
- name: Generate config (windows)
167-
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'
168168
working-directory: C:\repo
169169
run: ./gn.sh ${{ matrix.config.gn }}
170170
shell: bash
171171

172172
- name: Build
173-
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'
174174
run: ./build.sh ${{ matrix.config.tag }}
175175
shell: bash
176176

177177
- name: Build (windows)
178-
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'
179179
working-directory: C:\repo
180180
run: ./build.sh ${{ matrix.config.tag }}
181181
shell: bash
182182

183183
- name: Print out tree
184-
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'
185185
run: tree ./engine/src/out/
186186
shell: bash
187187

188188
- name: Print out tree (windows)
189-
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'
190190
working-directory: C:\repo
191191
run: tree ./engine/src/out/
192192
shell: bash
193193

194194
- name: Print release tree
195-
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'
196196
run: tree ./engine_out/
197197
shell: bash
198198

199199
- name: Print release tree (windows)
200-
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'
201201
working-directory: C:\repo
202202
run: tree ./engine_out/
203203
shell: bash
204204

205205
- name: Create release zip
206-
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'
207207
run: cd engine_out && zip -qq -r ../${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip ./*
208208
shell: bash
209209

210210
- name: Create release zip (windows)
211-
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'
212212
working-directory: C:\repo
213213
run: cd engine_out && zip -qq -r ../${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip ./*
214214
shell: bash
215215

216216
- name: Upload release asset
217-
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'
218218
uses: softprops/action-gh-release@master
219219
env:
220220
GITHUB_TOKEN: ${{ secrets.PERMANENT_GITHUB_TOKEN }}
@@ -224,7 +224,7 @@ jobs:
224224
files: ${{ matrix.config.host_tag }}-${{ matrix.config.tag }}.zip
225225

226226
- name: Upload release asset (windows)
227-
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'
228228
uses: softprops/action-gh-release@master
229229
env:
230230
GITHUB_TOKEN: ${{ secrets.PERMANENT_GITHUB_TOKEN }}

0 commit comments

Comments
 (0)