diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f81000c..f018a3c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -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 }} @@ -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: | @@ -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}')