diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 653c5c9fd..36e8f2a52 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -119,7 +119,9 @@ jobs: sudo apt -q install libseccomp-dev libseccomp-dev:i386 gcc-multilib criu - name: install go - uses: actions/setup-go@v2 # use default Go version + uses: actions/setup-go@v2 + with: + go-version: 1.x # Latest stable - name: unit test # cgo is disabled by default when cross-compiling diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 0a812a5cd..80a14db74 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -30,6 +30,10 @@ jobs: CGO_CFLAGS: -g -O2 -Werror steps: - uses: actions/checkout@v2 + - name: install go + uses: actions/setup-go@v2 + with: + go-version: 1.x # Latest stable - name: compile with no build tags run: make BUILDTAGS="" @@ -93,6 +97,10 @@ jobs: runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 + - name: install go + uses: actions/setup-go@v2 + with: + go-version: 1.x # Latest stable - name: cache go mod and $GOCACHE uses: actions/cache@v2 with: