File tree Expand file tree Collapse file tree 2 files changed +43
-8
lines changed Expand file tree Collapse file tree 2 files changed +43
-8
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- strategy :
12
- matrix :
13
- os : [ubuntu-latest, macos-latest, windows-latest]
14
- go-version : ['1.23']
15
- runs-on : ${{ matrix.os }}
11
+ runs-on : ubuntu-latest
16
12
steps :
17
13
- uses : actions/checkout@v4
18
14
19
15
- name : Set up Go
20
16
uses : actions/setup-go@v4
21
17
with :
22
- go-version : ${{ matrix.go-version }}
18
+ go-version : ' 1.23 '
23
19
24
20
- name : Go Cache
25
21
uses : actions/cache@v3
32
28
${{ runner.os }}-go-
33
29
34
30
- name : Security Scan
35
- if : matrix.os == 'ubuntu-latest'
36
31
uses : securego/gosec@master
37
32
with :
38
33
args : ./...
46
41
- name : Upload Build Artifact
47
42
uses : actions/upload-artifact@v3
48
43
with :
49
- name : hget-${{ runner.os }}
44
+ name : hget
50
45
path : bin/hget
51
46
if-no-files-found : error
Original file line number Diff line number Diff line change
1
+ before :
2
+ hooks :
3
+ - go mod tidy
4
+ builds :
5
+ - env :
6
+ - CGO_ENABLED=0
7
+ goos :
8
+ - linux
9
+ - windows
10
+ - darwin
11
+ goarch :
12
+ - amd64
13
+ - arm64
14
+ ignore :
15
+ - goos : windows
16
+ goarch : arm64
17
+ ldflags :
18
+ - -s -w -X main.GitCommit={{.ShortCommit}}
19
+ archives :
20
+ - format : tar.gz
21
+ name_template : >-
22
+ {{ .ProjectName }}_
23
+ {{- title .Os }}_
24
+ {{- if eq .Arch "amd64" }}x86_64
25
+ {{- else if eq .Arch "386" }}i386
26
+ {{- else }}{{ .Arch }}{{ end }}
27
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
28
+ format_overrides :
29
+ - goos : windows
30
+ format : zip
31
+ checksum :
32
+ name_template : ' checksums.txt'
33
+ snapshot :
34
+ name_template : " {{ incpatch .Version }}-next"
35
+ changelog :
36
+ sort : asc
37
+ filters :
38
+ exclude :
39
+ - ' ^docs:'
40
+ - ' ^test:'
You can’t perform that action at this time.
0 commit comments