Skip to content

Commit

Permalink
ci(linux-x64): 增加linux-x64的运行器, 并做相关适配
Browse files Browse the repository at this point in the history
  • Loading branch information
LuSrackhall committed Aug 29, 2024
1 parent a26bdb1 commit 30c3cf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
build:
strategy:
matrix:
os: [windows-latest]
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
outputs:
INSTALLER_NAME_X64_SETUP_EXE: ${{ env.INSTALLER_NAME_X64_SETUP_EXE }}
Expand Down Expand Up @@ -46,6 +46,7 @@ jobs:
make win
- name: Find the generated installer (Windows x64)
if: matrix.os == 'windows-latest'
working-directory: frontend/dist/electron/Packaged
shell: bash # 由于我们下方要使用的find命令, powershell中没有(更重要的是, 我不喜欢powershell) # 这个指定, 应该会让我们使用git-bash。
run: |
Expand Down Expand Up @@ -77,6 +78,7 @@ jobs:
# -----------------------------------------------------------------------------------------------------ZIP end
- name: Calculate File Hashes (Windows x64)
if: matrix.os == 'windows-latest'
shell: bash
run: |
SHA256_X64_SETUP_EXE=$(sha256sum frontend/dist/electron/Packaged/${{ env.INSTALLER_NAME_X64_SETUP_EXE }} | awk '{print $1}')
Expand Down

0 comments on commit 30c3cf8

Please sign in to comment.