From 3d98676626409c3d619c37f3325cce4e444ccba9 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Wed, 13 Oct 2021 12:36:17 -0700 Subject: [PATCH] ci/gha: install latest stable Go version Jobs verify/compile-buildtags and verify/deps relied on whatever Go version is available from the Ubuntu-20.04 image, which seems to be 1.15.x). Job test/cross-i386 was installing whatever Go version is considered to be the default one by actions/setup-go@v2, which seems to be go 1.15.15 at the moment. Fix all three jobs to install Go 1.x (which should translate to latest stable Go version, i.e. 1.17.2 as of now). Signed-off-by: Kir Kolyshkin --- .github/workflows/test.yml | 4 +++- .github/workflows/validate.yml | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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: