File tree Expand file tree Collapse file tree 3 files changed +18
-14
lines changed Expand file tree Collapse file tree 3 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -19,14 +19,15 @@ jobs:
19
19
if : github.repository == 'v2fly/v2ray-core'
20
20
runs-on : ubuntu-latest
21
21
steps :
22
- - name : Set up Go 1.x
23
- uses : actions/setup-go@v4
24
- with :
25
- go-version : ^1.21
26
-
27
22
- name : Checkout codebase
28
23
uses : actions/checkout@v5
29
24
25
+ - name : Set up Go
26
+ uses : actions/setup-go@v6
27
+ with :
28
+ go-version-file : ./go.mod
29
+ cache-dependency-path : ./go.sum
30
+
30
31
- name : golangci-lint
31
32
uses : golangci/golangci-lint-action@v8
32
33
with :
Original file line number Diff line number Diff line change @@ -133,9 +133,10 @@ jobs:
133
133
echo "ASSET_NAME=$_NAME" >> $GITHUB_ENV
134
134
135
135
- name : Set up Go
136
- uses : actions/setup-go@v4
136
+ uses : actions/setup-go@v6
137
137
with :
138
- go-version : ^1.24
138
+ go-version-file : ./go.mod
139
+ cache-dependency-path : ./go.sum
139
140
140
141
- name : Get project dependencies
141
142
run : go mod download
@@ -213,9 +214,10 @@ jobs:
213
214
fetch-depth : 0
214
215
215
216
- name : Set up Go
216
- uses : actions/setup-go@v4
217
+ uses : actions/setup-go@v6
217
218
with :
218
- go-version : ^1.24
219
+ go-version-file : ./go.mod
220
+ cache-dependency-path : ./go.sum
219
221
220
222
- uses : actions/download-artifact@v5
221
223
with :
Original file line number Diff line number Diff line change @@ -27,16 +27,17 @@ jobs:
27
27
matrix :
28
28
os : [windows-latest, ubuntu-latest, macos-latest]
29
29
steps :
30
- - name : Set up Go 1.x
31
- uses : actions/setup-go@v4
32
- with :
33
- go-version : ^1.21
34
-
35
30
- name : Checkout codebase
36
31
uses : actions/checkout@v5
37
32
with :
38
33
fetch-depth : 0
39
34
35
+ - name : Set up Go
36
+ uses : actions/setup-go@v6
37
+ with :
38
+ go-version-file : ./go.mod
39
+ cache-dependency-path : ./go.sum
40
+
40
41
- name : Check Go modules
41
42
run : |
42
43
go mod tidy
You can’t perform that action at this time.
0 commit comments