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: with:
toolchain: stable toolchain: stable
- uses: actions/setup-go@v2 - uses: actions/setup-go@v2
- name: Setup Go environment variables with:
run: | go-version: 1.16
echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
echo "$(go env GOPATH)/bin" >> $GITHUB_PATH
- run: sudo apt-get install -y lftp bgpdump tree - run: sudo apt-get install -y lftp bgpdump tree
- uses: actions/cache@v2 - uses: actions/cache@v2
with: with: