Update workflow

This commit is contained in:
世界 2024-02-26 12:39:06 +08:00
parent 5f02cb1cff
commit 8e89f9b4dc
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
2 changed files with 20 additions and 4 deletions

View file

@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ^1.21
go-version: ^1.22
- name: Add cache to Go proxy
run: |
version=`git rev-parse HEAD`
@ -85,6 +85,22 @@ jobs:
- name: Build
run: |
make test
build_go121:
name: Linux Debug build (Go 1.21)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ~1.21
continue-on-error: true
- name: Build
run: |
make test
build__windows:
name: Windows Debug build
runs-on: windows-latest
@ -96,7 +112,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ^1.21
go-version: ^1.22
continue-on-error: true
- name: Build
run: |
@ -112,7 +128,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ^1.21
go-version: ^1.22
continue-on-error: true
- name: Build
run: |

View file

@ -24,7 +24,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: ^1.21
go-version: ^1.22
- name: Cache go module
uses: actions/cache@v3
with: