Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build script, add arm64 to build target #130

Merged
merged 6 commits into from
Feb 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
export TAGNAME=$(echo $PUSH_EVENT_REF | sed -e 's!refs/tags/!!g')

make clean package
go get -u github.com/tcnksm/ghr
go install github.com/tcnksm/ghr@latest
$GOPATH/bin/ghr -n ${TAGNAME} -b "Release ${TAGNAME}" ${TAGNAME} dist/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
15 changes: 10 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ package:
else \
exefile="$(NAME)" ; \
fi ; \
for arch in amd64 386; do \
GO111MODULE=on GOOS=$$os GOARCH=$$arch go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o dist/$${os}_$${arch}/$${exefile} ; \
cd dist/$${os}_$${arch} ; \
zip ../$(NAME)_$(VERSION)_$${os}_$${arch}.zip $${exefile} ; \
cd ../.. ; \
for arch in amd64 arm64 386; do \
if [ $$os = "darwin" ] && [ $$arch = "386" ]; then \
echo "[SKIP] $$os/$$arch" ; \
else \
GO111MODULE=on GOOS=$$os GOARCH=$$arch go build -a -tags netgo -installsuffix netgo $(LDFLAGS) -o dist/$${os}_$${arch}/$${exefile} ; \
cd dist/$${os}_$${arch} ; \
zip ../$(NAME)_$(VERSION)_$${os}_$${arch}.zip $${exefile} ; \
echo "[DONE] $$os/$$arch" ; \
cd ../.. ; \
fi ; \
done; \
done

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.1.0
v1.1.0.rc2
Loading