mirror of
https://github.com/SagerNet/sing.git
synced 2025-04-03 11:57:39 +03:00
Fix actions/setup-go usage
This commit is contained in:
parent
3ac055b755
commit
45f572495e
2 changed files with 7 additions and 11 deletions
12
.github/workflows/debug.yml
vendored
12
.github/workflows/debug.yml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ">=1.21.0 <1.22.0"
|
||||
go-version: ^1.21
|
||||
- name: Add cache to Go proxy
|
||||
run: |
|
||||
version=`git rev-parse HEAD`
|
||||
|
@ -48,7 +48,7 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ">=1.18.0 <1.19.0"
|
||||
go-version: ~1.18
|
||||
continue-on-error: true
|
||||
- name: Build
|
||||
run: |
|
||||
|
@ -64,7 +64,7 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ">=1.19.0 <1.20.0"
|
||||
go-version: ~1.19
|
||||
continue-on-error: true
|
||||
- name: Build
|
||||
run: |
|
||||
|
@ -80,7 +80,7 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ">=1.20.0 <1.21.0"
|
||||
go-version: ~1.20
|
||||
continue-on-error: true
|
||||
- name: Build
|
||||
run: |
|
||||
|
@ -96,7 +96,7 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ">=1.21.0 <1.22.0"
|
||||
go-version: ^1.21
|
||||
continue-on-error: true
|
||||
- name: Build
|
||||
run: |
|
||||
|
@ -112,7 +112,7 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ">=1.21.0 <1.22.0"
|
||||
go-version: ^1.21
|
||||
continue-on-error: true
|
||||
- name: Build
|
||||
run: |
|
||||
|
|
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
|
@ -21,14 +21,10 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Get latest go version
|
||||
id: version
|
||||
run: |
|
||||
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: ${{ steps.version.outputs.go_version }}
|
||||
go-version: ^1.21
|
||||
- name: Cache go module
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue