mirror of
https://github.com/itchyny/mmv.git
synced 2025-12-26 22:24:58 +08:00
use actions/setup-go v2
This commit is contained in:
parent
9b54f8bfac
commit
e5da254c11
2 changed files with 2 additions and 6 deletions
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
|
@ -13,11 +13,9 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@master
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v1
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.x
|
||||
- name: Add $GOPATH/bin to $PATH
|
||||
run: echo "::add-path::$(go env GOPATH)/bin"
|
||||
- name: Test
|
||||
run: make test
|
||||
- name: Lint
|
||||
|
|
|
|||
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
|
@ -13,11 +13,9 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@master
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v1
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.x
|
||||
- name: Add $GOPATH/bin to $PATH
|
||||
run: echo "::add-path::$(go env GOPATH)/bin"
|
||||
- name: Cross build
|
||||
run: make cross
|
||||
- name: Create Release
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue