mirror of
https://github.com/kubesphere/kubekey.git
synced 2025-12-26 01:22:51 +00:00
modify the github workflow and build using go 1.17
Signed-off-by: Leo Li <jacksama@foxmail.com>
This commit is contained in:
parent
6ff321b9e4
commit
7a7bfd9aa2
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue