Skip to content

Commit

Permalink
fixing gitignore. fixing release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AnalogJ committed Mar 16, 2022
1 parent 2cca169 commit 68fad87
Show file tree
Hide file tree
Showing 2 changed files with 8 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-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
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-publishr-linux-amd64'
upload_assets: 'packagr-publishr-linux-amd64 packagr-publishr-darwin-amd64'
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
vendor/
packagr-publishr-linux-amd64
packagr-publishr-darwin-amd64

0 comments on commit 68fad87

Please sign in to comment.