Skip to content

Commit

Permalink
fix: prepare standalone archives for homebrew
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara committed Dec 4, 2024
1 parent 327cc33 commit b3e6813
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit b3e6813

Please sign in to comment.