File tree 5 files changed +23
-22
lines changed 5 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -17,20 +17,20 @@ jobs:
17
17
18
18
strategy :
19
19
matrix :
20
- go-version : [ "1.19 ", "1.20 ", "1.x" ]
20
+ go-version : [ "1.20 ", "1.21 ", "1.x" ]
21
21
os : [ubuntu-latest, macos-latest, windows-latest]
22
22
23
23
steps :
24
24
- name : Set up Go ${{ matrix.go-version }}
25
- uses : actions/setup-go@v2
25
+ uses : actions/setup-go@v4
26
26
with :
27
27
go-version : ${{ matrix.go-version }}
28
28
29
29
- name : Checkout code
30
- uses : actions/checkout@v2
30
+ uses : actions/checkout@v3
31
31
32
32
- name : Cache Go modules
33
- uses : actions/cache@v2
33
+ uses : actions/cache@v3
34
34
with :
35
35
# In order:
36
36
# * Module download cache
Original file line number Diff line number Diff line change @@ -13,24 +13,24 @@ jobs:
13
13
name : Main Process
14
14
runs-on : ubuntu-latest
15
15
env :
16
- GO_VERSION : " 1.19 "
17
- GOLANGCI_LINT_VERSION : v1.45 .2
16
+ GO_VERSION : " 1.20 "
17
+ GOLANGCI_LINT_VERSION : v1.51 .2
18
18
CGO_ENABLED : 0
19
19
20
20
steps :
21
21
22
22
- name : Set up Go ${{ env.GO_VERSION }}
23
- uses : actions/setup-go@v2
23
+ uses : actions/setup-go@v4
24
24
with :
25
25
go-version : ${{ env.GO_VERSION }}
26
26
27
27
- name : Check out code
28
- uses : actions/checkout@v2
28
+ uses : actions/checkout@v3
29
29
with :
30
30
fetch-depth : 0
31
31
32
32
- name : Cache Go modules
33
- uses : actions/cache@v2
33
+ uses : actions/cache@v3
34
34
with :
35
35
path : ~/go/pkg/mod
36
36
key : ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
Original file line number Diff line number Diff line change @@ -12,22 +12,22 @@ jobs:
12
12
steps :
13
13
-
14
14
name : Checkout
15
- uses : actions/checkout@v2
15
+ uses : actions/checkout@v3
16
16
with :
17
17
fetch-depth : 0
18
18
19
19
-
20
20
name : Set up Go
21
- uses : actions/setup-go@v2
21
+ uses : actions/setup-go@v4
22
22
with :
23
- go-version : " 1.19 "
23
+ go-version : " 1.20 "
24
24
25
25
-
26
26
name : Run GoReleaser
27
- uses : goreleaser/goreleaser-action@v2
27
+ uses : goreleaser/goreleaser-action@v4
28
28
with :
29
29
distribution : goreleaser
30
30
version : latest
31
- args : release --rm-dist
31
+ args : release --clean
32
32
env :
33
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -14,13 +14,14 @@ builds:
14
14
- windows
15
15
- darwin
16
16
archives :
17
- - name_template : " {{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
18
- replacements :
19
- darwin : Darwin
20
- linux : Linux
21
- windows : Windows
22
- 386 : i386
23
- amd64 : x86_64
17
+ - name_template : >-
18
+ {{- .Binary }}_
19
+ {{- .Version }}_
20
+ {{- title .Os }}_
21
+ {{- if eq .Arch "amd64" }}x86_64
22
+ {{- else if eq .Arch "386" }}i386
23
+ {{- else }}{{ .Arch }}{{ end }}
24
+ {{- if .Arm }}v{{ .Arm }}{{ end -}}
24
25
snapshot :
25
26
name_template : " {{ .Tag }}-next"
26
27
changelog :
Original file line number Diff line number Diff line change 1
1
module github.com/breml/bidichk
2
2
3
- go 1.19
3
+ go 1.20
4
4
5
5
require golang.org/x/tools v0.12.0
6
6
You can’t perform that action at this time.
0 commit comments