Update Go to 1.17 (#787)

* ci: bump Go version & move it to env

* go.mod: bump golang.org/x/term

* ci: capture Windows arm64 binary

Co-authored-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Ryan
2021-08-30 18:06:20 +00:00
committed by GitHub
parent 37aaec81f4
commit 4c645b3ed9
4 changed files with 22 additions and 7 deletions

View File

@@ -1,6 +1,9 @@
name: checks
on: [pull_request, workflow_dispatch]
env:
GO_VERSION: 1.17
jobs:
lint:
name: lint
@@ -11,7 +14,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v1
with:
go-version: 1.16
go-version: ${{ env.GO_VERSION }}
- uses: golangci/golangci-lint-action@v2
env:
CGO_ENABLED: 0
@@ -41,7 +44,7 @@ jobs:
uses: docker/setup-qemu-action@v1
- uses: actions/setup-go@v1
with:
go-version: 1.16
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@v2
if: ${{ !env.ACT }}
with:
@@ -68,7 +71,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.16
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@v2
if: ${{ !env.ACT }}
with:
@@ -111,7 +114,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-go@v1
with:
go-version: 1.16
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@v2
if: ${{ !env.ACT }}
with:
@@ -166,6 +169,12 @@ jobs:
with:
name: act-windows-i386
path: dist/act_windows_386/act.exe
- name: Capture arm64 (64-bit) Windows binary
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v2
with:
name: act-windows-arm64
path: dist/act_windows_arm64/act.exe
- name: Capture armv7 (32-bit) Windows binary
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v2

View File

@@ -4,6 +4,9 @@ on:
tags:
- v*
env:
GO_VERSION: 1.17
jobs:
release:
name: release
@@ -14,7 +17,7 @@ jobs:
fetch-depth: 0
- uses: actions/setup-go@v1
with:
go-version: 1.16
go-version: ${{ env.GO_VERSION }}
- uses: actions/cache@v2
if: ${{ !env.ACT }}
with: