From 675b19d25d6cd0cf61eab288b83be24dd8537f04 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Thu, 12 Feb 2026 15:09:52 +0000 Subject: [PATCH] WIP: workflows: Try and install golang with actions/setup-go With the go 1.25 bump we are hitting issues in our tests due to gocov in the toolchain not being found. actions/setup-go is supposed to be smarter about this than our manual install, so give this a try. Signed-off-by: stevenhorsman --- .github/workflows/build-checks.yaml | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-checks.yaml b/.github/workflows/build-checks.yaml index 48dbdb4c47..352d51e956 100644 --- a/.github/workflows/build-checks.yaml +++ b/.github/workflows/build-checks.yaml @@ -94,11 +94,28 @@ jobs: ./ci/install_yq.sh env: INSTALL_IN_GOPATH: false - - name: Install golang + + - name: Read properties from versions.yaml if: contains(matrix.component.needs, 'golang') run: | - ./tests/install_go.sh -f -p - echo "/usr/local/go/bin" >> "$GITHUB_PATH" + go_version="$(yq '.languages.golang.version' versions.yaml)" + [ -n "$go_version" ] + echo "GO_VERSION=${go_version}" >> "$GITHUB_ENV" + + - name: Setup Golang version ${{ env.GO_VERSION }} + if: contains(matrix.component.needs, 'golang') + uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0 + with: + go-version: ${{ env.GO_VERSION }} + # Setup-go doesn't work properly with ppc64le: https://github.com/actions/setup-go/issues/648 + architecture: ${{ contains(inputs.instance, 'ppc64le') && 'ppc64le' || '' }} + + # - name: Install golang + # if: contains(matrix.component.needs, 'golang') + # run: | + # ./tests/install_go.sh -f -p + # echo "/usr/local/go/bin" >> "$GITHUB_PATH" + - name: Setup rust if: contains(matrix.component.needs, 'rust') run: |