Skip to content

Commit f834c87

Browse files
committed
upgrade whole actions
1 parent b89f6db commit f834c87

File tree

8 files changed

+31
-29
lines changed

8 files changed

+31
-29
lines changed

.github/workflows/binary.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ jobs:
99
publish:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: "Setup go"
13-
uses: actions/setup-go@v4
14-
1512
- name: checkout
16-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1714
with:
1815
fetch-depth: 0
16+
17+
- name: "Setup go"
18+
uses: actions/setup-go@v4
1919

2020
- name: "Build binary"
2121
run: |

.github/workflows/dockerimage.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,29 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818

19-
- uses: docker/setup-qemu-action@v2.1.0
20-
- uses: docker/setup-buildx-action@v2.5.0
19+
- uses: docker/setup-qemu-action@v3
20+
- uses: docker/setup-buildx-action@v3
2121

2222
- name: Log in to the ghcr
23-
uses: docker/login-action@v2.1.0
23+
uses: docker/login-action@v3
2424
with:
2525
registry: ghcr.io
2626
username: ${{ github.actor }}
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Log in to the docker
30-
uses: docker/login-action@v2.1.0
30+
uses: docker/login-action@v3
3131
with:
3232
username: ${{ secrets.DOCKER_USERNAME }}
3333
password: ${{ secrets.DOCKER_PASSWORD }}
3434

3535
- name: Docker meta
3636
id: meta
37-
uses: docker/metadata-action@v4.4.0
37+
uses: docker/metadata-action@v5
3838
with:
3939
images: |
4040
ghcr.io/${{ github.repository }}
@@ -45,7 +45,7 @@ jobs:
4545
- name: Docker meta for debug version
4646
if: ${{ github.ref == 'refs/heads/master' }}
4747
id: debug-meta
48-
uses: docker/metadata-action@v4.4.0
48+
uses: docker/metadata-action@v5
4949
with:
5050
images: |
5151
ghcr.io/${{ github.repository }}
@@ -55,7 +55,7 @@ jobs:
5555
5656
- name: Build and push image
5757
if: ${{ steps.meta.outputs.tags != '' }}
58-
uses: docker/build-push-action@v4.0.0
58+
uses: docker/build-push-action@v5
5959
with:
6060
context: "."
6161
platforms: linux/amd64,linux/arm64
@@ -64,7 +64,7 @@ jobs:
6464

6565
- name: "[debug version] Build and push image"
6666
if: ${{ github.ref == 'refs/heads/master' }}
67-
uses: docker/build-push-action@v4.0.0
67+
uses: docker/build-push-action@v5
6868
with:
6969
context: "."
7070
platforms: linux/amd64,linux/arm64

.github/workflows/golangci-lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717

1818
- name: Set up Go
19-
uses: actions/setup-go@v3
19+
uses: actions/setup-go@v4
2020
with:
2121
go-version-file: 'go.mod'
2222

.github/workflows/goreleaser.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0
1616

@@ -19,14 +19,14 @@ jobs:
1919
echo "VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))" >> $GITHUB_ENV
2020
2121
- name: Set up Go
22-
uses: actions/setup-go@v3
22+
uses: actions/setup-go@v4
2323
with:
2424
go-version-file: 'go.mod'
2525

2626
- name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@v2
27+
uses: goreleaser/goreleaser-action@v5
2828
with:
2929
version: latest
30-
args: release --rm-dist
30+
args: release --clean
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ jobs:
1212
unittests:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
16-
- uses: actions/setup-go@v3
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v4
1717
with:
1818
go-version-file: 'go.mod'
1919
- name: unit tests

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ run:
66
- tools
77
- 3rdmocks
88
modules-download-mode: readonly
9-
go: 1.18
9+
go: 1.20
1010

1111
linters-settings:
1212
maligned:

.goreleaser.yml

+8-6
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ builds:
5757
- amd64
5858

5959
archives:
60-
- replacements:
61-
darwin: Darwin
62-
linux: Linux
63-
windows: Windows
64-
386: i386
65-
amd64: x86_64
60+
- id: core
61+
name_template: >-
62+
{{- .ProjectName }}_{{- .Version }}_
63+
{{- title .Os }}_
64+
{{- if eq .Arch "amd64" }}x86_64
65+
{{- else if eq .Arch "386" }}i386
66+
{{- else }}{{ .Arch }}{{ end }}
67+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
6668
6769
checksum:
6870
name_template: 'checksums.txt'

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Eru can use multiple engines to run anything for the long or short term.
1010

1111
This project is Eru Core. The Core use for resource allocation and manage resource's lifetime.
1212

13-
Suggest use go 1.18 and above.
13+
Suggest use go 1.20 and above.
1414

1515
### Testing
1616

0 commit comments

Comments
 (0)