Skip to content

Commit

Permalink
Merge pull request #57 from szweier/m1-hardware
Browse files Browse the repository at this point in the history
Adding arm64 architecture so it can be used on the M1 CircleCI hardware.
  • Loading branch information
grinish21 authored Mar 16, 2023
2 parents eb79ac6 + 23c4ff0 commit 32468b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,13 @@ jobs:
run: ls -lah
- name: Rename macOS binary
run: mv go-earlybird go-earlybird-macos
- name: Rename arm64 macOS binary
run: mv go-earlybird-arm64 go-earlybird-arm64-macos

- uses: actions/setup-node@v2
with:
node-version: '16'
- name: Create a release with Semantic Release
run: npx -p @semantic-release/changelog -p @semantic-release/git -p [email protected] semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"plugins": [
["@semantic-release/github", {
"assets": ["go-earlybird-linux", "go-earlybird-macos", "go-earlybird.exe"],
"assets": ["go-earlybird-linux", "go-earlybird-macos", "go-earlybird.exe", "go-earlybird-arm64-macos"],
"proxy": false
}],
"@semantic-release/release-notes-generator",
Expand Down
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,7 @@ echo "Building Windows binary - Completed!!!"
echo "Building MacOS binary"
env GOOS=darwin GOARCH=amd64 go build -ldflags="-X 'github.com/americanexpress/earlybird/pkg/buildflags.Version=$version'" -o binaries/go-earlybird
echo "Building MacOS binary - Completed!!!"
echo "Building MacOS Silicon binary"
env GOOS=darwin GOARCH=arm64 go build -ldflags="-X 'github.com/americanexpress/earlybird/pkg/buildflags.Version=$version'" -o binaries/go-earlybird-arm64
echo "Building MacOS Silicon binary - Completed!!!"
echo "Build Completed ..."

0 comments on commit 32468b4

Please sign in to comment.