File tree 2 files changed +14
-13
lines changed
2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- name : set up Go environment
9
- uses : actions/setup-go@v2
9
+ uses : actions/setup-go@v3
10
10
with :
11
11
go-version : 1.20
12
12
- name : check out
13
- uses : actions/checkout@v2
13
+ uses : actions/checkout@v3
14
14
- name : cache
15
15
16
16
with :
@@ -22,13 +22,13 @@ jobs:
22
22
needs : setup
23
23
runs-on : ubuntu-latest
24
24
steps :
25
- - uses : actions/checkout@v2
25
+ - uses : actions/checkout@v3
26
26
- name : build
27
27
run : go build ./cmd/tparallel/main.go
28
28
test :
29
29
needs : build
30
30
runs-on : ubuntu-latest
31
31
steps :
32
- - uses : actions/checkout@v2
32
+ - uses : actions/checkout@v3
33
33
- name : test
34
34
run : go test -v ./...
Original file line number Diff line number Diff line change 1
1
project_name : tparallel
2
- env :
3
- - GO111MODULE=on
4
2
before :
5
3
hooks :
6
4
- go mod tidy
@@ -14,13 +12,16 @@ builds:
14
12
env :
15
13
- CGO_ENABLED=0
16
14
archives :
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 }}
24
25
format_overrides:
25
26
- goos: windows
26
27
format: zip
You can’t perform that action at this time.
0 commit comments