Skip to content

Commit b441ec1

Browse files
committed
Add proper Go version before project checks
Due to a change in Go, the go.mod file cannot declare a version of Go above the installed `go version`; until the default Go version in GitHub actions virt environments is 1.16, we have to install 1.16 before running the project checks now. Signed-off-by: Phil Estes <[email protected]> (cherry picked from commit 3ab9744)
1 parent bf16e9e commit b441ec1

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ jobs:
4949
timeout-minutes: 5
5050

5151
steps:
52+
- uses: actions/setup-go@v2
53+
with:
54+
go-version: '1.16.4'
55+
56+
- shell: bash
57+
run: |
58+
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
59+
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
60+
5261
- uses: actions/checkout@v2
5362
with:
5463
path: src/github.com/containerd/containerd

0 commit comments

Comments
 (0)