From b2f061e39507002fe94e59e6ec759f1e7588a3cd Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Fri, 21 Jan 2022 13:20:37 +0800 Subject: [PATCH] Update ci.yml --- .github/workflows/ci.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be05e47..161e934 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - goVer: [ '1.15', '1.16', '1.17' ] + goVer: [ '1.15'] steps: - uses: actions/checkout@v2 @@ -21,6 +21,19 @@ jobs: with: go-version: ${{ matrix.goVer }} + - name: Setup Environment + run: | + echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + + - name: Module cache + uses: actions/cache@v2.1.7 + env: + cache-name: go-mod-cache + with: + path: ~/go/pkg/mod + key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/go.sum') }} + - name: Build run: go build -v ./...