Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pull binaries from homebrew bottle #25

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
debug GH action
  • Loading branch information
wasaga committed Nov 24, 2022
commit b7a23ebba31bb8f57b10cbb380265fd0b7de09c0
24 changes: 21 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,29 @@ jobs:
run: |
brew install oras

pwd
# homebrew doesn't use v, just a number triplet
_version=${{ steps.tagName.outputs.tag }}
_version=${_version:1}

ls
# AMD64 is not supported beyond 12.6
oras pull ghcr.io/homebrew/core/envoy:${_version} --platform "darwin/amd64:macOS 12.6"
tar --extract \
--file envoy--${_version}.monterey.bottle.tar.gz \
--directory . \
--strip-components=3 \
envoy/${_version}/bin/envoy
mv -f envoy envoy-darwin-amd64

sh ./mac.sh ${{ steps.tagName.outputs.tag }}
oras pull ghcr.io/homebrew/core/envoy:${_version} --platform "darwin/arm64:macOS 13"
tar --extract \
--file envoy--${_version}.arm64_ventura.bottle.tar.gz \
--directory . \
--strip-components=3 \
envoy/${_version}/bin/envoy
mv -f envoy envoy-darwin-arm64

shasum -a 256 envoy-darwin-amd64 > envoy-darwin-amd64.sha256
shasum -a 256 envoy-darwin-arm64 > envoy-darwin-arm64.sha256

- name: Upload artifacts to release
env:
Expand Down