File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed
Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 66 runs-on : ubuntu-latest
77 steps :
88 - name : set up Go environment
9- uses : actions/setup-go@v2
9+ uses : actions/setup-go@v3
1010 with :
1111 go-version : 1.20
1212 - name : check out
13- uses : actions/checkout@v2
13+ uses : actions/checkout@v3
1414 - name : cache
15151616 with :
@@ -22,13 +22,13 @@ jobs:
2222 needs : setup
2323 runs-on : ubuntu-latest
2424 steps :
25- - uses : actions/checkout@v2
25+ - uses : actions/checkout@v3
2626 - name : build
2727 run : go build ./cmd/tparallel/main.go
2828 test :
2929 needs : build
3030 runs-on : ubuntu-latest
3131 steps :
32- - uses : actions/checkout@v2
32+ - uses : actions/checkout@v3
3333 - name : test
3434 run : go test -v ./...
Original file line number Diff line number Diff line change 11project_name : tparallel
2- env :
3- - GO111MODULE=on
42before :
53 hooks :
64 - go mod tidy
@@ -14,13 +12,16 @@ builds:
1412 env :
1513 - CGO_ENABLED=0
1614archives :
17- - name_template : ' {{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
18- replacements :
19- darwin : darwin
20- linux : linux
21- windows : windows
22- 386 : i386
23- amd64 : x86_64
15+ - name_template : >-
16+ {{ .ProjectName }}_
17+ {{- .Version }}_
18+ {{- if eq .Os "freebsd" }}FreeBSD
19+ {{- else }}{{ title .Os }}{{ end }}_
20+ {{- if eq .Arch "amd64" }}64bit
21+ {{- else if eq .Arch "386" }}32bit
22+ {{- else if eq .Arch "arm64" }}ARM64
23+ {{- else if eq .Arch "riscv64" }}RISCV
24+ {{- else }}{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ end }}
2425 format_overrides:
2526 - goos: windows
2627 format: zip
You can’t perform that action at this time.
0 commit comments