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