Skip to content

Commit

Permalink
Use go version specified by go.mod for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fasmat committed Dec 20, 2024
1 parent ef8ba69 commit 21f9916
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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' }}
Expand Down

0 comments on commit 21f9916

Please sign in to comment.