File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed
Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change 22# - cd chisel
33# - goreleaser --skip-publish --rm-dist --config .github/goreleaser.yml
44builds :
5- - env :
5+ - id : chisel
6+ binary : chisel
7+ env :
68 - CGO_ENABLED=0
79 ldflags :
810 - -s -w -X github.com/jpillora/chisel/share.BuildVersion={{.Version}}
@@ -13,8 +15,26 @@ builds:
1315 - windows
1416 goarch :
1517 - amd64
18+ - id : chisel-garble
19+ binary : chisel-garble
20+ goos :
21+ - windows
22+ goarch :
23+ - amd64
24+ ldflags :
25+ - " "
26+ gobinary : " garble-literals"
1627archives :
17- - format : gz
28+ - id : chisel
29+ builds : [chisel]
30+ format : gz
31+ name_template : chisel_{{ .Version }}_{{ .Os }}_{{ .Arch }}
32+ files :
33+ - none*
34+ - id : chisel-garble
35+ builds : [chisel-garble]
36+ format : gz
37+ name_template : chisel-garble_{{ .Version }}_{{ .Os }}_{{ .Arch }}
1838 files :
1939 - none*
2040release :
Original file line number Diff line number Diff line change @@ -42,14 +42,22 @@ jobs:
4242 -
4343 name : Set up Go
4444 uses : actions/setup-go@v3
45+ with :
46+ go-version : 1.19
47+ -
48+ name : Install garble
49+ run : |
50+ go install mvdan.cc/garble@master
51+ sudo cp garble-literals.sh /usr/bin/garble-literals
52+ sudo chmod +x /usr/bin/garble-literals
4553 -
4654 name : Run GoReleaser
4755 uses : goreleaser/goreleaser-action@v3
4856 with :
4957 # either 'goreleaser' (default) or 'goreleaser-pro'
5058 distribution : goreleaser
5159 version : latest
52- args : release --rm-dist --config .github/goreleaser.yml
60+ args : release --debug -- rm-dist --config .github/goreleaser.yml
5361 env :
5462 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5563 # Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ garble -literals $@
You can’t perform that action at this time.
0 commit comments