From 68fad879ea9070e66f4e07b0c6b4b955e9a37313 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Wed, 16 Mar 2022 10:43:22 -0700 Subject: [PATCH] fixing gitignore. fixing release.yaml --- .github/workflows/release.yaml | 7 ++++++- .gitignore | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9163e92..35d7251 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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-publishr-linux-amd64 -tags "static" cmd/publishr/publishr.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-publishr-darwin-amd64 -tags "static" cmd/publishr/publishr.go + chmod +x packagr-publishr-linux-amd64 + chmod +x packagr-publishr-darwin-amd64 ./packagr-publishr-linux-amd64 --help echo "listing linked libraries" && ldd packagr-publishr-linux-amd64 @@ -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-publishr-linux-amd64' + upload_assets: 'packagr-publishr-linux-amd64 packagr-publishr-darwin-amd64' diff --git a/.gitignore b/.gitignore index 48b8bf9..f9004cb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ vendor/ +packagr-publishr-linux-amd64 +packagr-publishr-darwin-amd64 \ No newline at end of file