File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 29
29
30
30
- name : Install goreleaser
31
31
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
33
33
tar -xf goreleaser_Linux_x86_64.tar.gz
34
34
sudo install goreleaser /usr/bin/goreleaser
35
35
rm -rf goreleaser*
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ builds:
13
13
- amd64
14
14
- 386
15
15
16
+ ignore :
17
+ - goos : darwin
18
+ goarch : 386
19
+
16
20
ldflags :
17
21
- -s -w
18
22
- -X main.version={{.Version}}
@@ -21,8 +25,8 @@ builds:
21
25
- CGO_ENABLED=0
22
26
23
27
hooks :
24
- pre : go mod tidy
25
- post : make compress
28
+ post :
29
+ - upx --best --ultra-brute "{{ .Path }}"
26
30
27
31
archives :
28
32
- id : qlock
Original file line number Diff line number Diff line change 17
17
18
18
# ### Release ####
19
19
20
- # Compress binaries with UPX.
21
- .PHONY : compress
22
- compress :
23
- upx --best --ultra-brute dist/qlock_* /qlock*
24
-
25
20
# Build and publish binaries as Github release artifacts.
26
21
.PHONY : release
27
22
release :
You can’t perform that action at this time.
0 commit comments