From 2dd9c81d58e07d7a6a31dfd76e3d7b496aff535d Mon Sep 17 00:00:00 2001 From: Matthias Fasching <5011972+fasmat@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:37:19 +0000 Subject: [PATCH] Use go version specified by go.mod for CI (#6560) ## Motivation The CI still uses a hard coded go version to build and unit test the node code. Both the release and systest jobs already parse and use the version specified in `go.mod`. This updates the CI to also use the version in `go.mod` instead of a hard coded setting. --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cb79fc5fb..669d340ddf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,6 @@ name: CI env: - go-version: "1.23" GCLOUD_KEY: ${{ secrets.GCLOUD_KEY }} PROJECT_NAME: ${{ secrets.PROJECT_NAME }} CLUSTER_NAME: ${{ secrets.CLUSTER_NAME }} @@ -79,7 +78,7 @@ jobs: uses: actions/setup-go@v5 with: check-latest: true - go-version: ${{ env.go-version }} + go-version-file: "go.mod" - name: fmt, tidy, generate run: | make install @@ -110,7 +109,7 @@ jobs: uses: actions/setup-go@v5 with: check-latest: true - go-version: ${{ env.go-version }} + go-version-file: "go.mod" - name: setup env run: make install - name: lint @@ -157,7 +156,7 @@ jobs: uses: actions/setup-go@v5 with: check-latest: true - go-version: ${{ env.go-version }} + go-version-file: "go.mod" cache: ${{ runner.arch != 'arm64' }} - name: setup env run: make install @@ -267,7 +266,7 @@ jobs: uses: actions/setup-go@v5 with: check-latest: true - go-version: ${{ env.go-version }} + go-version-file: "go.mod" cache: ${{ runner.arch != 'arm64' }} - name: Add OpenCL support - Ubuntu if: ${{ matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-latest-arm-8-cores' }}