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
|
name: checks
|
||||||
on: [pull_request, workflow_dispatch]
|
on: [pull_request, workflow_dispatch]
|
||||||
|
|
||||||
|
env:
|
||||||
|
GO_VERSION: 1.17
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
name: lint
|
name: lint
|
||||||
|
@ -11,7 +14,7 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v1
|
- uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: golangci/golangci-lint-action@v2
|
- uses: golangci/golangci-lint-action@v2
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
@ -41,7 +44,7 @@ jobs:
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
- uses: actions/setup-go@v1
|
- uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
with:
|
with:
|
||||||
|
@ -68,7 +71,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v1
|
- uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
with:
|
with:
|
||||||
|
@ -111,7 +114,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-go@v1
|
- uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
with:
|
with:
|
||||||
|
@ -166,6 +169,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: act-windows-i386
|
name: act-windows-i386
|
||||||
path: dist/act_windows_386/act.exe
|
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
|
- name: Capture armv7 (32-bit) Windows binary
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
|
5
.github/workflows/release.yml
vendored
5
.github/workflows/release.yml
vendored
|
@ -4,6 +4,9 @@ on:
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
|
|
||||||
|
env:
|
||||||
|
GO_VERSION: 1.17
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: release
|
name: release
|
||||||
|
@ -14,7 +17,7 @@ jobs:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-go@v1
|
- uses: actions/setup-go@v1
|
||||||
with:
|
with:
|
||||||
go-version: 1.16
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v2
|
||||||
if: ${{ !env.ACT }}
|
if: ${{ !env.ACT }}
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue