Skip to content

Commit d966dc3

Browse files
authored
Merge pull request #22 from breml/update-github-actions
Fix update github actions
2 parents 704386d + e371c25 commit d966dc3

File tree

5 files changed

+23
-22
lines changed

5 files changed

+23
-22
lines changed

.github/workflows/go-cross.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,20 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
go-version: [ "1.19", "1.20", "1.x" ]
20+
go-version: [ "1.20", "1.21", "1.x" ]
2121
os: [ubuntu-latest, macos-latest, windows-latest]
2222

2323
steps:
2424
- name: Set up Go ${{ matrix.go-version }}
25-
uses: actions/setup-go@v2
25+
uses: actions/setup-go@v4
2626
with:
2727
go-version: ${{ matrix.go-version }}
2828

2929
- name: Checkout code
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131

3232
- name: Cache Go modules
33-
uses: actions/cache@v2
33+
uses: actions/cache@v3
3434
with:
3535
# In order:
3636
# * Module download cache

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,24 @@ jobs:
1313
name: Main Process
1414
runs-on: ubuntu-latest
1515
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
1818
CGO_ENABLED: 0
1919

2020
steps:
2121

2222
- name: Set up Go ${{ env.GO_VERSION }}
23-
uses: actions/setup-go@v2
23+
uses: actions/setup-go@v4
2424
with:
2525
go-version: ${{ env.GO_VERSION }}
2626

2727
- name: Check out code
28-
uses: actions/checkout@v2
28+
uses: actions/checkout@v3
2929
with:
3030
fetch-depth: 0
3131

3232
- name: Cache Go modules
33-
uses: actions/cache@v2
33+
uses: actions/cache@v3
3434
with:
3535
path: ~/go/pkg/mod
3636
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ jobs:
1212
steps:
1313
-
1414
name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616
with:
1717
fetch-depth: 0
1818

1919
-
2020
name: Set up Go
21-
uses: actions/setup-go@v2
21+
uses: actions/setup-go@v4
2222
with:
23-
go-version: "1.19"
23+
go-version: "1.20"
2424

2525
-
2626
name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@v2
27+
uses: goreleaser/goreleaser-action@v4
2828
with:
2929
distribution: goreleaser
3030
version: latest
31-
args: release --rm-dist
31+
args: release --clean
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,14 @@ builds:
1414
- windows
1515
- darwin
1616
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 -}}
2425
snapshot:
2526
name_template: "{{ .Tag }}-next"
2627
changelog:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/breml/bidichk
22

3-
go 1.19
3+
go 1.20
44

55
require golang.org/x/tools v0.12.0
66

0 commit comments

Comments
 (0)