chore(ci): update build workflow with latest go version
This commit is contained in:
parent
4f66244e9a
commit
f8ef48e57a
|
@ -1,10 +1,18 @@
|
|||
name: build
|
||||
|
||||
on: push
|
||||
run-name: Build and test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
@ -12,7 +20,7 @@ jobs:
|
|||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.17
|
||||
go-version: 1.20
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
|
@ -6,8 +6,29 @@ on:
|
|||
- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
release:
|
||||
build:
|
||||
name: Build and test
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.20
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
release:
|
||||
name: Release
|
||||
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
|
Reference in New Issue