Skip to content

Commit

Permalink
fix releaser, remove windows_arm64 (#7)
Browse files Browse the repository at this point in the history
Signed-off-by: Clavin June <[email protected]>
  • Loading branch information
clavinjune authored Jan 21, 2022
1 parent 3fabe81 commit 8690e35
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
# vendor/
dist/
out/
src/

serve
serve.exe
16 changes: 14 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ before:
hooks:
- make check
builds:
- env:
- id: amd64
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
- windows
Expand All @@ -34,6 +34,18 @@ builds:
post: upx -9 {{ .Path }}
ldflags:
- "-s -w"
- id: arm64
env:
- CGO_ENABLED=0
goarch:
- arm64
goos:
- linux
- darwin
hooks:
post: upx -9 {{ .Path }}
ldflags:
- "-s -w"
checksum:
name_template: 'checksums.txt'
dockers:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fmt:
@go run $(licenser) apply -r "ClavinJune/serve" 2> /dev/null

release:
@GITHUB_TOKEN="${GITHUB_PAT}" go run $(releaser) release --rm-dist
@go run $(releaser) release --rm-dist

snapshot:
@GITHUB_TOKEN="${GITHUB_PAT}" go run $(releaser) release --rm-dist --snapshot
@mkdir -p src/ && go run $(releaser) release --rm-dist --snapshot && rm -rf src/

0 comments on commit 8690e35

Please sign in to comment.