Skip to content

Commit 710401a

Browse files
committed
workflow: sync workflow to 1.66.0
1 parent 778af68 commit 710401a

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.19', 'go1.20']
20+
job_name: ['linux', 'linux_386', 'mac_amd64', 'mac_arm64', 'windows', 'other_os', 'go1.20', 'go1.21']
2121

2222
include:
2323
- job_name: linux
2424
os: ubuntu-latest
25-
go: '1.21'
25+
go: '>=1.22.0-rc.1'
2626
gotags: cmount
2727
build_flags: '-include "^linux/"'
2828
check: false
@@ -33,14 +33,14 @@ jobs:
3333

3434
- job_name: linux_386
3535
os: ubuntu-latest
36-
go: '1.21'
36+
go: '>=1.22.0-rc.1'
3737
goarch: 386
3838
gotags: cmount
3939
quicktest: false
4040

4141
- job_name: mac_amd64
4242
os: macos-11
43-
go: '1.21'
43+
go: '>=1.22.0-rc.1'
4444
gotags: 'cmount'
4545
build_flags: '-include "^darwin/amd64" -cgo'
4646
quicktest: false
@@ -49,14 +49,14 @@ jobs:
4949

5050
- job_name: mac_arm64
5151
os: macos-11
52-
go: '1.21'
52+
go: '>=1.22.0-rc.1'
5353
gotags: 'cmount'
5454
build_flags: '-include "^darwin/arm64" -cgo -macos-arch arm64 -cgo-cflags=-I/usr/local/include -cgo-ldflags=-L/usr/local/lib'
5555
deploy: true
5656

5757
- job_name: windows
5858
os: windows-latest
59-
go: '1.21'
59+
go: '>=1.22.0-rc.1'
6060
gotags: cmount
6161
cgo: '0'
6262
build_flags: '-include "^windows/"'
@@ -66,20 +66,20 @@ jobs:
6666

6767
- job_name: other_os
6868
os: ubuntu-latest
69-
go: '1.21'
69+
go: '>=1.22.0-rc.1'
7070
build_flags: '-exclude "^(windows/|darwin/|linux/)"'
7171
compile_all: true
7272
deploy: true
7373

74-
- job_name: go1.19
74+
- job_name: go1.20
7575
os: ubuntu-latest
76-
go: '1.19'
76+
go: '1.20'
7777
quicktest: true
7878
racequicktest: true
7979

80-
- job_name: go1.20
80+
- job_name: go1.21
8181
os: ubuntu-latest
82-
go: '1.20'
82+
go: '1.21'
8383
quicktest: true
8484
racequicktest: true
8585

@@ -94,7 +94,7 @@ jobs:
9494
fetch-depth: 0
9595

9696
- name: Install Go
97-
uses: actions/setup-go@v4
97+
uses: actions/setup-go@v5
9898
with:
9999
go-version: ${{ matrix.go }}
100100
check-latest: true
@@ -158,7 +158,7 @@ jobs:
158158
env
159159
160160
- name: Go module cache
161-
uses: actions/cache@v3
161+
uses: actions/cache@v4
162162
with:
163163
path: ~/go/pkg/mod
164164
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -210,26 +210,26 @@ jobs:
210210

211211
# steps:
212212
# - name: Checkout
213-
# uses: actions/checkout@v3
213+
# uses: actions/checkout@v4
214214

215215
# - name: Code quality test
216216
# uses: golangci/golangci-lint-action@v3
217217
# with:
218218
# # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
219219
# version: latest
220220

221-
# # Run govulncheck on the latest go version, the one we build binaries with
222-
# - name: Install Go
223-
# uses: actions/setup-go@v4
224-
# with:
225-
# go-version: '1.20'
226-
# check-latest: true
221+
# Run govulncheck on the latest go version, the one we build binaries with
222+
# - name: Install Go
223+
# uses: actions/setup-go@v5
224+
# with:
225+
# go-version: '>=1.22.0-rc.1'
226+
# check-latest: true
227227

228-
# - name: Install govulncheck
229-
# run: go install golang.org/x/vuln/cmd/govulncheck@latest
228+
# - name: Install govulncheck
229+
# run: go install golang.org/x/vuln/cmd/govulncheck@latest
230230

231-
# - name: Scan for vulnerabilities
232-
# run: govulncheck ./...
231+
# - name: Scan for vulnerabilities
232+
# run: govulncheck ./...
233233

234234
android:
235235
if: ${{ github.repository == 'dogbutcat/gclone' || github.event.inputs.manual }}
@@ -245,12 +245,12 @@ jobs:
245245

246246
# Upgrade together with NDK version
247247
- name: Set up Go
248-
uses: actions/setup-go@v4
248+
uses: actions/setup-go@v5
249249
with:
250-
go-version: '1.21'
250+
go-version: '>=1.22.0-rc.1'
251251

252252
- name: Go module cache
253-
uses: actions/cache@v3
253+
uses: actions/cache@v4
254254
with:
255255
path: ~/go/pkg/mod
256256
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

0 commit comments

Comments
 (0)