From 4382f78100622d5a17dba48bc610266294f6a251 Mon Sep 17 00:00:00 2001 From: Diogo Mendes Matsubara Date: Mon, 28 Oct 2024 17:53:02 +0100 Subject: [PATCH] fix: account for lack of zip.exe on windows --- .github/workflows/release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ea8848155..2aaca82a7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -163,7 +163,11 @@ jobs: - name: Zip standalone archives shell: bash run: | - zip -9 zenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip ./build/packages/*.zip + zip_cmd="zip" + if [[ ${{ contains(matrix.build.target, 'windows') }} == true ]]; then + zip_cmd="7z" + fi + ${zip_cmd} -9 zenohc-${{ inputs.version || '0.0.0' }}-${{ matrix.build.target }}-standalone.zip ./build/packages/*.zip - name: Zip deb/rpm archives shell: bash