use actions/setup-go v2

This commit is contained in:
itchyny 2020-05-07 15:46:36 +09:00
parent 9b54f8bfac
commit e5da254c11
2 changed files with 2 additions and 6 deletions

View file

@ -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

View file

@ -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