mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-02-21 14:22:24 +00:00
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 <steven@uk.ibm.com>
This commit is contained in:
23
.github/workflows/build-checks.yaml
vendored
23
.github/workflows/build-checks.yaml
vendored
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user