Skip to content

Commit

Permalink
adding mac build for release.
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Mar 16, 2022
1 parent 0393ac5 commit 212c335
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ jobs:
# build linux binary
. /scripts/toolchains/linux/linux-build-env.sh && go build -mod vendor -ldflags "-X main.goos=linux -X main.goarch=amd64" -o packagr-releasr-linux-amd64 -tags "static" cmd/releasr/releasr.go
# build mac binary
cp /usr/local/osx-ndk-x86/macports/pkgs/opt/local/lib/pkgconfig/libgit2.pc vendor/gopkg.in/libgit2/git2go.v25/vendor/libgit2/build/libgit2.pc
. /scripts/toolchains/osx/osx-build-env.sh && go build -mod vendor -ldflags "-X main.goos=darwin -X main.goarch=amd64" -o packagr-releasr-darwin-amd64 -tags "static" cmd/releasr/releasr.go
chmod +x packagr-releasr-linux-amd64
chmod +x packagr-releasr-darwin-amd64
./packagr-releasr-linux-amd64 --help
echo "listing linked libraries" && ldd packagr-releasr-linux-amd64
Expand All @@ -63,4 +68,4 @@ jobs:
# This is necessary in order to push a commit to the repo
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
with:
upload_assets: 'packagr-releasr-linux-amd64'
upload_assets: 'packagr-releasr-linux-amd64 packagr-releasr-darwin-amd64'

0 comments on commit 212c335

Please sign in to comment.