-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,29 +11,3 @@ This repo contains: | |
|
||
When a release tag is created, the envoy binaries will be automatically extracted from the matching `envoyproxy/envoy` image tag and uploaded to the release. | ||
|
||
# Building Envoy for darwin/arm64 | ||
|
||
Currently there's no way to run a github action on darwin/arm64, so the build must be done manually: | ||
|
||
1. Clone envoyproxy/envoy | ||
```bash | ||
git clone [email protected]:envoyproxy/envoy | ||
``` | ||
1. Checkout the release tag | ||
```bash | ||
git checkout v1.23.0 | ||
``` | ||
1. Build | ||
```bash | ||
bazelisk build -c "opt" //source/exe:envoy-static --config=sizeopt | ||
``` | ||
1. Wait a **very** long time. | ||
1. Copy binary | ||
```bash | ||
cp -f bazel-bin/source/exe/envoy-static ~/Downloads/envoy-darwin-arm64 | ||
``` | ||
1. Produce shasum | ||
```bash | ||
shasum -a 256 ~/Downloads/envoy-darwin-arm64 > ~/Downloads/envoy-darwin-arm64.sha256 | ||
``` | ||
1. Drag & Drop the files to the release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/sh | ||
# downloads a MacOS Envoy from homebrew | ||
# takes `v1.x.y` as an argument | ||
|
||
set -e | ||
|
||
if [ $# -eq 0 ]; then | ||
echo "expected an envoy version" | ||
exit 1 | ||
fi | ||
|
||
# homebrew doesn't use v, just a number triplet | ||
_version=${1:1} | ||
|
||
# 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 | ||
|
||
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 |