File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,30 +35,16 @@ jobs:
3535 runs-on : ubuntu-latest
3636 permissions :
3737 contents : write
38- strategy :
39- matrix :
40- include :
41- - goos : linux
42- goarch : amd64
43- - goos : linux
44- goarch : arm64
45- - goos : darwin
46- goarch : amd64
47- - goos : darwin
48- goarch : arm64
4938 steps :
5039 - uses : actions/checkout@v5
40+ with :
41+ fetch-depth : 0
5142 - uses : actions/setup-go@v6
5243 with :
5344 go-version : " 1.24"
54- - name : Build
55- env :
56- GOOS : ${{ matrix.goos }}
57- GOARCH : ${{ matrix.goarch }}
58- run : |
59- go build -ldflags "-s -w -X main.version=${{ github.ref_name }}" \
60- -o gpuaudit-${{ matrix.goos }}-${{ matrix.goarch }} ./cmd/gpuaudit
61- - name : Upload release asset
62- uses : softprops/action-gh-release@v2
45+ - uses : goreleaser/goreleaser-action@v6
6346 with :
64- files : gpuaudit-${{ matrix.goos }}-${{ matrix.goarch }}
47+ version : " ~> v2"
48+ args : release --clean
49+ env :
50+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ builds :
4+ - main : ./cmd/gpuaudit
5+ binary : gpuaudit
6+ ldflags :
7+ - -s -w -X main.version={{.Version}}
8+ goos :
9+ - linux
10+ - darwin
11+ goarch :
12+ - amd64
13+ - arm64
14+
15+ archives :
16+ - formats : [tar.gz]
17+ name_template : " gpuaudit_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
18+
19+ checksum :
20+ name_template : " checksums.txt"
21+
22+ changelog :
23+ sort : asc
24+ filters :
25+ exclude :
26+ - " ^Merge"
27+
28+ release :
29+ github :
30+ owner : gpuaudit
31+ name : cli
You can’t perform that action at this time.
0 commit comments