File tree 4 files changed +7
-9
lines changed
4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 38
38
with :
39
39
distribution : goreleaser
40
40
version : ' ~> v2'
41
- args : release --clean
41
+ args : release --clean --verbose
42
42
env :
43
43
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
44
SNAPCRAFT_STORE_CREDENTIALS : ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
Original file line number Diff line number Diff line change 76
76
with :
77
77
distribution : goreleaser
78
78
version : ' ~> v2'
79
- args : release --snapshot --skip=publish --skip=snapcraft --skip=validate --clean
79
+ args : release --snapshot --skip=publish --skip=snapcraft --skip=validate --clean --verbose
80
80
- name : Tar binaries to preserve executable bit
81
81
run : ' tar -cvf lefthook-binaries.tar --directory dist/ $(find dist/ -executable -type f -printf "%P\0" | xargs --null)'
82
82
- name : Upload binaries as artifacts
Original file line number Diff line number Diff line change 7
7
# Builds the binaries without `lefthook upgrade`
8
8
- id : no_self_update
9
9
tags :
10
- - osusergo
11
- - netgo
12
10
- no_self_update
13
11
env :
14
- - GCO_ENABLED =0
12
+ - CGO_ENABLED =0
15
13
goos :
16
14
- linux
17
15
- darwin
@@ -31,7 +29,7 @@ builds:
31
29
flags :
32
30
- -trimpath
33
31
ldflags :
34
- - -s -w -extldflags '-static' - X github.com/evilmartians/lefthook/internal/version.commit={{.Commit}}
32
+ - -s -w -X github.com/evilmartians/lefthook/internal/version.commit={{.Commit}}
35
33
36
34
# Full lefthook binary
37
35
- id : lefthook
@@ -56,7 +54,7 @@ builds:
56
54
flags :
57
55
- -trimpath
58
56
ldflags :
59
- - -s -w -extldflags '-static' - X github.com/evilmartians/lefthook/internal/version.commit={{.Commit}}
57
+ - -s -w -X github.com/evilmartians/lefthook/internal/version.commit={{.Commit}}
60
58
61
59
archives :
62
60
- id : lefthook
Original file line number Diff line number Diff line change 1
1
COMMIT_HASH = $(shell git rev-parse HEAD)
2
2
3
3
build :
4
- go build -ldflags " -s -w -extldflags '-static' - X github.com/evilmartians/lefthook/internal/version.commit=$( COMMIT_HASH) " -o lefthook
4
+ go build -ldflags " -s -w -X github.com/evilmartians/lefthook/internal/version.commit=$( COMMIT_HASH) " -o lefthook
5
5
6
6
build-with-coverage :
7
- go build -cover -ldflags " -s -w extldflags '-static' -X github.com/evilmartians/lefthook/internal/version.commit=$( COMMIT_HASH) " -o lefthook
7
+ go build -cover -ldflags " -s -w -X github.com/evilmartians/lefthook/internal/version.commit=$( COMMIT_HASH) " -o lefthook
8
8
9
9
install : build
10
10
cp lefthook $$(go env GOPATH ) /bin
You can’t perform that action at this time.
0 commit comments