From b3e6813b54694dd5b6ecc447ea65b7a7a03630bb Mon Sep 17 00:00:00 2001 From: Diogo Mendes Matsubara Date: Wed, 4 Dec 2024 08:56:19 +0100 Subject: [PATCH] fix: prepare standalone archives for homebrew --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2b2c0e7..9d040f4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -92,6 +92,13 @@ jobs: REPO: ${{ github.repository }} VERSION: ${{ needs.tag.outputs.version }} + - name: Prepare standalone archives + shell: bash + run: | + zip_filename=$(readlink -f ./build/packages/*.zip) + cp ${zip_filename} zenoh-cpp-${{ inputs.version || '0.0.0'}}-x86_64-apple-darwin-standalone.zip + cp ${zip_filename} zenoh-cpp-${{ inputs.version || '0.0.0'}}-aarch64-apple-darwin-standalone.zip + - name: Upload library archive uses: actions/upload-artifact@v4 with: @@ -103,14 +110,14 @@ jobs: uses: actions/upload-artifact@v4 with: name: zenoh-cpp-${{ inputs.version || '0.0.0'}}-x86_64-apple-darwin-standalone.zip - path: ${{ steps.build.outputs.archive-lib }} + path: zenoh-cpp-${{ inputs.version || '0.0.0'}}-x86_64-apple-darwin-standalone.zip # Hack to upload header-only package in a format that homebrew release action can use. - name: Upload archive for Homebrew (aarch64) uses: actions/upload-artifact@v4 with: name: zenoh-cpp-${{ inputs.version || '0.0.0'}}-aarch64-apple-darwin-standalone.zip - path: ${{ steps.build.outputs.archive-lib }} + path: zenoh-cpp-${{ inputs.version || '0.0.0'}}-aarch64-apple-darwin-standalone.zip - name: Upload DEB archive uses: actions/upload-artifact@v4