Skip to content

Commit

Permalink
优化 ci
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rdfree committed Nov 1, 2024
1 parent 9af59c5 commit 8934387
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/yakit-ce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ jobs:
working-directory: ./
name: "Install Legacy Electron"

- name: "Download Yak Legacy Engine via wget(Windows)"
if: ${{ env.IS_TAG_RELEASE == 'tag/v' || env.COMPATIBILITY_MODE == 'legacy' }}
id: download-windows-leagacy-engine
run: rm ./bins/yak_windows_amd64.zip && wget -O bins/yak_windows_amd64.exe https://yaklang.oss-accelerate.aliyuncs.com/yak/latest/yak_windows_legacy_amd64.exe && zip ./bins/yak_windows_amd64.zip ./bins/yak_windows_amd64.exe && rm ./bins/yak_windows_amd64.exe

- name: Build Yakit Legacy (MultiPlatform)
if: ${{ env.IS_TAG_RELEASE == 'tag/v' || (env.PACKAGING_PLATFORM == 'mwl' && env.COMPATIBILITY_MODE == 'legacy') }}
env:
Expand All @@ -142,10 +147,6 @@ jobs:
working-directory: ./
run: yarn pack-linux-legacy

- name: "Download Yak Legacy Engine via wget(Windows)"
if: ${{ env.IS_TAG_RELEASE != 'tag/v' && env.PACKAGING_PLATFORM == 'win' && env.COMPATIBILITY_MODE == 'legacy' }}
id: download-windows-leagacy-engine
run: rm ./bins/yak_windows_amd64.zip && wget -O bins/yak_windows_amd64.exe https://yaklang.oss-accelerate.aliyuncs.com/yak/latest/yak_windows_legacy_amd64.exe && zip ./bins/yak_windows_amd64.zip ./bins/yak_windows_amd64.exe && rm ./bins/yak_windows_amd64.exe
- name: Build Yakit Legacy (WIN)
if: ${{ env.IS_TAG_RELEASE != 'tag/v' && env.PACKAGING_PLATFORM == 'win' && env.COMPATIBILITY_MODE == 'legacy' }}
env:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/yakit-ee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ jobs:
working-directory: ./
name: "Install Legacy Electron"

- name: "Download Yak Legacy Engine via wget(Windows)"
if: ${{ env.IS_TAG_RELEASE == 'tag/v' || env.COMPATIBILITY_MODE == 'legacy' }}
id: download-windows-leagacy-engine
run: rm ./bins/yak_windows_amd64.zip && wget -O bins/yak_windows_amd64.exe https://yaklang.oss-accelerate.aliyuncs.com/yak/latest/yak_windows_legacy_amd64.exe && zip ./bins/yak_windows_amd64.zip ./bins/yak_windows_amd64.exe && rm ./bins/yak_windows_amd64.exe

- name: Build EE Yakit Legacy (MultiPlatform)
if: ${{ env.IS_TAG_RELEASE == 'tag/v' || (env.PACKAGING_PLATFORM == 'mwl' && env.COMPATIBILITY_MODE == 'legacy') }}
env:
Expand All @@ -147,10 +152,6 @@ jobs:
working-directory: ./
run: yarn pack-linux-ee-legacy

- name: "Download Yak Legacy Engine via wget(Windows)"
if: ${{ env.IS_TAG_RELEASE == 'tag/v' || env.PACKAGING_PLATFORM == 'mwl' || env.PACKAGING_PLATFORM == 'win' }}
id: download-windows-leagacy-engine
run: rm ./bins/yak_windows_amd64.zip && wget -O bins/yak_windows_amd64.exe https://yaklang.oss-accelerate.aliyuncs.com/yak/latest/yak_windows_legacy_amd64.exe && zip ./bins/yak_windows_amd64.zip ./bins/yak_windows_amd64.exe && rm ./bins/yak_windows_amd64.exe
- name: Build EE Yakit Legacy (WIN)
if: ${{ env.IS_TAG_RELEASE != 'tag/v' && env.PACKAGING_PLATFORM == 'win' && env.COMPATIBILITY_MODE == 'legacy' }}
env:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/yakit-se.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ jobs:
working-directory: ./
name: "Install Legacy Electron"

- name: "Download Yak Legacy Engine via wget(Windows)"
if: ${{ env.PACKAGING_PLATFORM == 'mwl' && env.COMPATIBILITY_MODE == 'legacy' }}
id: download-windows-leagacy-engine
run: rm ./bins/yak_windows_amd64.zip && wget -O bins/yak_windows_amd64.exe https://yaklang.oss-accelerate.aliyuncs.com/yak/latest/yak_windows_legacy_amd64.exe && zip ./bins/yak_windows_amd64.zip ./bins/yak_windows_amd64.exe && rm ./bins/yak_windows_amd64.exe

- name: Build SE Yakit Legacy (MultiPlatform)
if: ${{ env.PACKAGING_PLATFORM == 'mwl' && env.COMPATIBILITY_MODE == 'legacy' }}
env:
Expand All @@ -145,10 +150,6 @@ jobs:
working-directory: ./
run: yarn pack-linux-se-legacy

- name: "Download Yak Legacy Engine via wget(Windows)"
if: ${{ env.PACKAGING_PLATFORM == 'mwl' || env.PACKAGING_PLATFORM == 'win' }}
id: download-windows-leagacy-engine
run: rm ./bins/yak_windows_amd64.zip && wget -O bins/yak_windows_amd64.exe https://yaklang.oss-accelerate.aliyuncs.com/yak/latest/yak_windows_legacy_amd64.exe && zip ./bins/yak_windows_amd64.zip ./bins/yak_windows_amd64.exe && rm ./bins/yak_windows_amd64.exe
- name: Build SE Yakit Legacy (WIN)
if: ${{ env.PACKAGING_PLATFORM == 'win' && env.COMPATIBILITY_MODE == 'legacy' }}
env:
Expand Down

0 comments on commit 8934387

Please sign in to comment.