diff --git a/.github/workflows/build-seas.yml b/.github/workflows/build-seas.yml index 0bcd091..a81213f 100644 --- a/.github/workflows/build-seas.yml +++ b/.github/workflows/build-seas.yml @@ -111,12 +111,20 @@ jobs: result-encoding: string - name: zip the sea binary + if: matrix.os != 'windows-latest' run: zip -r hdcli-${{ steps.set-os-nice-name.outputs.result }}-.zip ${{ steps.set-executable-name.outputs.result }} working-directory: ./dist/apps/cli shell: bash + - name: zip the sea binary + if: matrix.os == 'windows-latest' + run: Compress-Archive -Path ${{ steps.set-executable-name.outputs.result }} -Destination hdcli-${{ steps.set-os-nice-name.outputs.result }}-.zip + working-directory: dist\apps\cli + shell: pwsh + - name: cache the zip uses: actions/cache/save@v4 with: key: hdcli-sea-${{ steps.set-os-nice-name.outputs.result }}-zip-${{ github.run_id }} - path: ./dist/apps/cli/${{ steps.set-executable-name.outputs.result }}-${{ steps.set-os-nice-name.outputs.result }}.zip + path: ./dist/apps/cli/hdcli-${{ steps.set-os-nice-name.outputs.result }}.zip + enableCrossOsArchive: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0096c0c..1b2abc5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,18 +59,21 @@ jobs: with: key: hdcli-sea-linux-latest-zip-${{ github.run_id }} path: ./dist/apps/cli/hdcli-linux.zip + enableCrossOsArchive: true - name: restore the macos zip from cache uses: actions/cache/save@v4 with: key: hdcli-sea-macos-zip-${{ github.run_id }} path: ./dist/apps/cli/hdcli-macos.zip + enableCrossOsArchive: true - name: restore the windows zip from cache uses: actions/cache/save@v4 with: key: hdcli-sea-windows-zip-${{ github.run_id }} path: ./dist/apps/cli/hdcli.exe-windows.zip + enableCrossOsArchive: true - name: create release id: create-release