mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
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:
parent
266865c070
commit
139b89b5f9
2 changed files with 17 additions and 5 deletions
17
.github/workflows/checks.yml
vendored
17
.github/workflows/checks.yml
vendored
|
@ -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
|
||||
|
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue