Skip to content

Commit

Permalink
Fix homebrew publish (#305)
Browse files Browse the repository at this point in the history
* fix: standalone archive following homebrew naming

* fix: prepare standalone archives for homebrew

* fix: correct archive path
  • Loading branch information
diogomatsubara authored Dec 4, 2024
1 parent 725a14b commit 14f491a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,34 @@ jobs:
REPO: ${{ github.repository }}
VERSION: ${{ needs.tag.outputs.version }}

# Hack to upload header-only package in a format that homebrew release action can use.
- name: Prepare standalone archives
shell: bash
run: |
zip_filename=$(readlink -f ${{ steps.build.outputs.archive-lib }})
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:
name: ${{ steps.build.outputs.archive-lib }}
path: ${{ steps.build.outputs.archive-lib }}

# Hack to upload header-only package in a format that homebrew release action can use.
- name: Upload archive for Homebrew (x86_64)
uses: actions/upload-artifact@v4
with:
name: zenoh-cpp-${{ inputs.version || '0.0.0'}}-x86_64-apple-darwin-standalone.zip
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: zenoh-cpp-${{ inputs.version || '0.0.0'}}-aarch64-apple-darwin-standalone.zip

- name: Upload DEB archive
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 14f491a

Please sign in to comment.