Skip to content

Commit 75b2c1d

Browse files
authored
Upgrade goreleaser version (#16)
1 parent 7d930a7 commit 75b2c1d

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
3030
- name: Install goreleaser
3131
run: |-
32-
wget -q https://github.com/goreleaser/goreleaser/releases/download/v0.123.3/goreleaser_Linux_x86_64.tar.gz
32+
wget -q https://github.com/goreleaser/goreleaser/releases/download/v0.145.0/goreleaser_Linux_x86_64.tar.gz
3333
tar -xf goreleaser_Linux_x86_64.tar.gz
3434
sudo install goreleaser /usr/bin/goreleaser
3535
rm -rf goreleaser*

.goreleaser.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ builds:
1313
- amd64
1414
- 386
1515

16+
ignore:
17+
- goos: darwin
18+
goarch: 386
19+
1620
ldflags:
1721
- -s -w
1822
- -X main.version={{.Version}}
@@ -21,8 +25,8 @@ builds:
2125
- CGO_ENABLED=0
2226

2327
hooks:
24-
pre: go mod tidy
25-
post: make compress
28+
post:
29+
- upx --best --ultra-brute "{{ .Path }}"
2630

2731
archives:
2832
- id: qlock

Makefile

-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ endif
1717

1818
#### Release ####
1919

20-
# Compress binaries with UPX.
21-
.PHONY: compress
22-
compress:
23-
upx --best --ultra-brute dist/qlock_*/qlock*
24-
2520
# Build and publish binaries as Github release artifacts.
2621
.PHONY: release
2722
release:

0 commit comments

Comments
 (0)