workflows: set PATH by actions/setup-go@v2

This commit is contained in:
Yifan Gao 2021-08-10 08:12:56 +08:00
parent 1f899ff241
commit 8fe8db59b0

View File

@ -22,10 +22,8 @@ jobs:
with:
toolchain: stable
- uses: actions/setup-go@v2
- name: Setup Go environment variables
run: |
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
with:
go-version: 1.16
- run: sudo apt-get install -y lftp bgpdump tree
- uses: actions/cache@v2
with: