File tree Expand file tree Collapse file tree 3 files changed +60
-1
lines changed
Expand file tree Collapse file tree 3 files changed +60
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Build
2+
3+ on : push
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+ env :
9+ CGO_ENABLED : 0
10+ steps :
11+ - uses : actions/checkout@v3
12+ - uses : actions/setup-go@v4
13+ with :
14+ go-version : ' 1.21'
15+ - run : test -z $(gofmt -l .)
16+ - run : go build ./cmd/explainshell.go
Original file line number Diff line number Diff line change 1+ name : Publish
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*.*.*"
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ strategy :
14+ matrix :
15+ include :
16+ - goos : linux
17+ goarch : amd64
18+ filename : explainshell-linux-amd64
19+ - goos : darwin
20+ goarch : amd64
21+ filename : explainshell-darwin-amd64
22+ - goos : darwin
23+ goarch : arm64
24+ goarm : 7
25+ filename : explainshell-darwin-arm7
26+ - goos : windows
27+ goarch : amd64
28+ filename : explainshell-windows-amd64.exe
29+ env :
30+ CGO_ENABLED : 0
31+ GOOS : ${{ matrix.goos }}
32+ GOARCH : ${{ matrix.goarch }}
33+ GOARM : ${{ matrix.goarm }}
34+ steps :
35+ - uses : actions/checkout@v3
36+ - uses : actions/setup-go@v4
37+ with :
38+ go-version : ' 1.21'
39+ - run : go build -o ${{ matrix.filename }} ./cmd/explainshell.go
40+ - uses : softprops/action-gh-release@v1
41+ with :
42+ files : explainshell-*
43+ generate_release_notes : true
Original file line number Diff line number Diff line change 11module explainshell-shell
22
3- go 1.17
3+ go 1.21
44
55require github.com/PuerkitoBio/goquery v1.8.0
66
You can’t perform that action at this time.
0 commit comments