modify the github workflow and build using go 1.17

Signed-off-by: Leo Li <jacksama@foxmail.com>
This commit is contained in:
Leo Li 2021-12-23 16:03:58 +08:00
parent 6ff321b9e4
commit 7a7bfd9aa2
2 changed files with 9 additions and 6 deletions

View File

@ -19,10 +19,10 @@ jobs:
GO111MODULE: on
steps:
- name: Set up Go 1.16
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
id: go
- name: Check out code into the Go module directory
@ -42,8 +42,11 @@ jobs:
exit 1
fi
- name: Build
run: go build -v -o output/kk ./main.go
- name: Build operator manager
run: go build -v -o output/manager ./main.go
- name: Build command-line tool
run: go build -v -o output/kk ./cmd/main.go
- uses: actions/upload-artifact@v2
if: github.event_name == 'push'

View File

@ -14,10 +14,10 @@ jobs:
fetch-depth: 1
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go 1.16
- name: Set up Go 1.17
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2.8.0
with: