Skip to content

Commit

Permalink
Build an arm64 release (#91)
Browse files Browse the repository at this point in the history
(This is a precursor to adding the arm release to
https://github.com/honeycombio/buildevents-orb)
  • Loading branch information
ismith authored Mar 27, 2021
1 parent ab97aeb commit c29e892
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
12 changes: 8 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ commands:
arch:
description: Target architecture
type: enum
enum: ["386", "amd64"]
enum: ["386", "amd64", "arm64"]
default: "amd64"
steps:
## method 1 to send a command span
Expand Down Expand Up @@ -71,6 +71,9 @@ jobs:
- go-build:
os: darwin
arch: amd64
- go-build:
os: linux
arch: arm64
- run: mkdir -v artifacts; cp -v $GOPATH/bin/buildevents-* artifacts/

## just to serve as an example, let's add the size of the artifacts built to our trace
Expand Down Expand Up @@ -126,9 +129,10 @@ jobs:
echo "about to publish to tag ${CIRCLE_TAG}"
tar -xvf artifacts/buildevents.tar
ls -l *
ghr --draft -n ${CIRCLE_TAG} -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./artifacts/buildevents-linux-386
ghr --draft -n ${CIRCLE_TAG} -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./artifacts/buildevents-linux-amd64
ghr --draft -n ${CIRCLE_TAG} -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./artifacts/buildevents-darwin-amd64
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./artifacts/buildevents-linux-386
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./artifacts/buildevents-linux-amd64
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./artifacts/buildevents-linux-arm64
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./artifacts/buildevents-darwin-amd64
workflows:
build:
Expand Down
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,29 @@ If you have a working go environment in your build, the easiest way to install `
go get github.com/honeycombio/buildevents/
```

There are also built binaries for linux and macOS hosted on Github and available under the [releases](https://github.com/honeycombio/buildevents/releases) tab. The following two commands will down load and make executable the github-hosted binary.
There are also built binaries for linux and macOS hosted on Github and available under the [releases](https://github.com/honeycombio/buildevents/releases) tab. The following commands will download and make executable the github-hosted binary.

**linux:**
**linux, 32-bit x86:**

```
curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-386
chmod 755 buildevents
```

**linux, 64-bit x86:**

```
curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-amd64
chmod 755 buildevents
```

**linux, arm64:**

```
curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/latest/download/buildevents-linux-arm64
chmod 755 buildevents
```

**macOS:**

```
Expand Down

0 comments on commit c29e892

Please sign in to comment.