@@ -186,118 +186,6 @@ jobs:
186186 compression-level : 0
187187 retention-days : 7
188188
189- gen_emu_script-win :
190- name : " Gen emu config win"
191- if : ${{ !cancelled() }}
192- uses : " ./.github/workflows/gen_emu_config-build-win.yml"
193-
194- gen_emu_script-win-prep :
195- needs : ["gen_emu_script-win"]
196- runs-on : " windows-2022"
197- steps :
198- # on Windows Git will auto change line ending to CRLF, not preferable
199- - name : " Ensure LF line ending"
200- shell : " cmd"
201- working-directory : " ${{ github.workspace }}"
202- run : |
203- git config --local core.autocrlf false
204- git config --system core.autocrlf false
205- git config --global core.autocrlf false
206-
207- # we need branch because it has package scripts
208- - name : " Checkout branch"
209- uses : actions/checkout@v4
210-
211- - name : " Clone third-party deps (deps/win)"
212- uses : actions/checkout@v4
213- with :
214- ref : " third-party/deps/win"
215- path : " ${{env.THIRD_PARTY_BASE_DIR}}/deps/win"
216-
217- # download artifacts
218- - name : " Download script build artifacts (Win)"
219- uses : actions/download-artifact@v4
220- with :
221- path : " tools/generate_emu_config/bin/win"
222- pattern : " generate_emu_config-win-*"
223- merge-multiple : true
224-
225- # package
226- - name : " Package script"
227- shell : " cmd"
228- working-directory : " tools/generate_emu_config"
229- run : package_win.bat
230-
231- # release tag
232- - name : " Release"
233- if : startsWith(github.ref, 'refs/tags/')
234- uses : softprops/action-gh-release@v2
235- with :
236- files : " tools/generate_emu_config/bin/package/win/**/*"
237-
238- # upload artifact/package if this is a manual run
239- - name : " Upload release package"
240- if : ${{ !startsWith(github.ref, 'refs/tags/') }}
241- uses : actions/upload-artifact@v4
242- with :
243- name : " release-generate_emu_config-win-${{ github.sha }}"
244- path : " tools/generate_emu_config/bin/package/win/**/*"
245- if-no-files-found : " error"
246- compression-level : 9
247- retention-days : 7
248-
249- gen_emu_script-linux :
250- name : " Gen emu config linux"
251- if : ${{ !cancelled() }}
252- uses : " ./.github/workflows/gen_emu_config-build-linux.yml"
253-
254- gen_emu_script-linux-prep :
255- needs : ["gen_emu_script-linux"]
256- runs-on : " ubuntu-20.04"
257- steps :
258- # we need branch because it has package scripts
259- - name : " Checkout branch"
260- uses : actions/checkout@v4
261-
262- # download artifacts
263- - name : " Download script build artifacts (linux)"
264- uses : actions/download-artifact@v4
265- with :
266- path : " tools/generate_emu_config/bin/linux"
267- pattern : " generate_emu_config-linux-*"
268- merge-multiple : true
269-
270- # fix folder permissions! not sure why this fails
271- # nested subdirs "build/linux/release" cause permission problems
272- - name : " Give all permissions to repo folder"
273- shell : " bash"
274- working-directory : " ${{ github.workspace }}"
275- run : sudo chmod -R 777 "${{ github.workspace }}"
276-
277- # package
278- - name : " Package script"
279- shell : " bash"
280- working-directory : " tools/generate_emu_config"
281- run : sudo chmod 777 package_linux.sh && sudo ./package_linux.sh
282-
283- # release tag
284- - name : " Release"
285- if : startsWith(github.ref, 'refs/tags/')
286- uses : softprops/action-gh-release@v2
287- with :
288- files : " tools/generate_emu_config/bin/package/linux/**/*"
289-
290- # upload artifact/package if this is a manual run
291- - name : " Upload release package"
292- if : ${{ !startsWith(github.ref, 'refs/tags/') }}
293- uses : actions/upload-artifact@v4
294- with :
295- name : " release-generate_emu_config-linux-${{ github.sha }}"
296- path : " tools/generate_emu_config/bin/package/linux/**/*"
297- if-no-files-found : " error"
298- compression-level : 9
299- retention-days : 7
300-
301189 migrate_gse_script-win :
302190 name : " Migrate GSE win"
303191 if : ${{ !cancelled() }}
0 commit comments