diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 797aa16..0d980bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -60,6 +60,8 @@ 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: @@ -67,4 +69,4 @@ jobs: - name: Create a release with Semantic Release run: npx -p @semantic-release/changelog -p @semantic-release/git -p semantic-release@19.0.2 semantic-release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc.json b/.releaserc.json index 73a3412..901ea23 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -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", diff --git a/build.sh b/build.sh index b07dd18..9722a8b 100755 --- a/build.sh +++ b/build.sh @@ -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 ..."