Skip to content

Commit

Permalink
build: fix Go version setting in CI
Browse files Browse the repository at this point in the history
One of our builds installs a Microsoft fork of Go, and the install
method only supports concrete versions. I've switched the CI to use Go
1.21 without specifying the patch version instead.

I've also added this build to the PR checks, as it was missing there.
  • Loading branch information
swiatekm committed Nov 24, 2023
1 parent 5e236b8 commit a593646
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defaults:
shell: bash

env:
GO_VERSION: "~1.21.4"
GO_VERSION: "1.21"

jobs:

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defaults:
shell: bash

env:
GO_VERSION: "~1.21.4"
GO_VERSION: "1.21"

jobs:

Expand Down Expand Up @@ -277,6 +277,9 @@ jobs:
runs-on: macos-latest
- arch_os: windows_amd64
runs-on: windows-2022
- arch_os: windows_amd64
runs-on: windows-2022
fips: true
with:
arch_os: ${{ matrix.arch_os }}
runs-on: ${{ matrix.runs-on }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defaults:
shell: bash

env:
GO_VERSION: "~1.21.4"
GO_VERSION: "1.21"

jobs:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defaults:
shell: bash

env:
GO_VERSION: "~1.21.4"
GO_VERSION: "1.21"

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ defaults:
shell: bash

env:
GO_VERSION: "~1.21.4"
GO_VERSION: "1.21"

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion vagrant/provision.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

export GO_VERSION="1.21.4"
export GO_VERSION="1.21"

sudo apt update -y
sudo apt install -y \
Expand Down

0 comments on commit a593646

Please sign in to comment.