CI: use go version stable and not go.mod

Users have reported some issues with Podman built with the stable ver
of go (this is the version used in the release workflow): #29891.

The problem hasn't been reproduced in PR checks because because it uses
a different version of Go (from `go.mod`).

This commit updates `ci.yaml` to be consistent with
`release-build-artifacts.yml`.

It also set the version of Go to v1.26 to fix #29891.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
This commit is contained in:
Mario Loriedo 2026-10-05 15:37:16 +02:00
parent 029d759171
commit d06e6c3452
2 changed files with 12 additions and 12 deletions

View file

@ -93,7 +93,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: false
- name: Read golangci-lint version from Makefile
@ -198,7 +198,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: false
- name: Run cross build
run: make cross
@ -245,7 +245,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: true
- name: Install build dependencies
@ -305,7 +305,7 @@ jobs:
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: true
- name: Build core binaries
@ -457,7 +457,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: false
- name: "Install gvproxy"
run: |
@ -519,7 +519,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: true
- name: Run unit tests
@ -552,7 +552,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: true
- name: Build podman
@ -598,7 +598,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: true
- name: Diagnostics
@ -690,7 +690,7 @@ jobs:
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
go-version: '1.26'
cache: true
- name: Pre-clean machine state

View file

@ -84,7 +84,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: stable
go-version: '1.26'
cache: false
- name: Set up pandoc
run: |
@ -124,7 +124,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: stable
go-version: '1.26'
cache: false
- name: Create Keychain
run: |
@ -190,7 +190,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: stable
go-version: '1.26'
cache: false
- name: Set up WiX
run: dotnet tool install --global wix --version 5.0.2