Update go.yml

This commit is contained in:
Carey Wong 2023-05-08 15:53:39 +08:00 committed by GitHub
parent 85a7ff173b
commit a427d9270a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,13 +7,13 @@ on:
jobs: jobs:
linux_amd64_build: linux_amd64_build:
name: Linux amd64 build name: Linux amd64 build
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
# runs-on: self-hosted # runs-on: self-hosted
steps: steps:
- name: Set up Go 1.19 - name: Set up Go 1.20
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.19 go-version: 1.20
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -29,13 +29,13 @@ jobs:
linux_arm64_build: linux_arm64_build:
name: Linux arm64 build name: Linux arm64 build
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
# runs-on: self-hosted # runs-on: self-hosted
steps: steps:
- name: Set up Go 1.19 - name: Set up Go 1.20
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.19 go-version: 1.20
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -51,12 +51,12 @@ jobs:
# darwin_amd64_build: # darwin_amd64_build:
# name: Darwin amd64 build # name: Darwin amd64 build
# runs-on: ubuntu-20.04 # runs-on: ubuntu-latest
# steps: # steps:
# - name: Set up Go 1.19 # - name: Set up Go 1.20
# uses: actions/setup-go@v2 # uses: actions/setup-go@v2
# with: # with:
# go-version: 1.19 # go-version: 1.20
# id: go # id: go
# - name: Check out code into the Go module directory # - name: Check out code into the Go module directory
# uses: actions/checkout@v3 # uses: actions/checkout@v3
@ -72,12 +72,12 @@ jobs:
windows_x64_build: windows_x64_build:
name: Windows x64 build name: Windows x64 build
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps: steps:
- name: Set up Go 1.19 - name: Set up Go 1.20
uses: actions/setup-go@v2 uses: actions/setup-go@v2
with: with:
go-version: 1.19 go-version: 1.20
id: go id: go
- name: Check out code into the Go module directory - name: Check out code into the Go module directory
uses: actions/checkout@v3 uses: actions/checkout@v3