From 139b89b5f9b9ce2eb20727e18c344b1e79807369 Mon Sep 17 00:00:00 2001 From: Ryan Date: Mon, 30 Aug 2021 18:06:20 +0000 Subject: [PATCH] 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 --- .github/workflows/checks.yml | 17 +++++++++++++---- .github/workflows/release.yml | 5 ++++- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index f7f5bb7b..cbd5c638 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4a633080..e4689b88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: