Skip to content

Commit

Permalink
Bump golang to v1.22 in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
  • Loading branch information
saschagrunert committed May 15, 2024
1 parent 28321d7 commit d4d80f4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false

- name: Set env
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false

- name: Set env
Expand Down
24 changes: 13 additions & 11 deletions .github/workflows/containerd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,16 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false

- name: Set env
if: startsWith(matrix.os, 'windows')
shell: bash
run: |
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
- name: Cache go modules and build cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
'%LocalAppData%\go-build' # Windows
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: ${{ runner.os }}-go-

- name: Checkout containerd/containerd ${{ format(matrix.version, '/') }}
uses: actions/checkout@v4
with:
Expand All @@ -88,6 +79,16 @@ jobs:
with:
path: ${{github.workspace}}/src/github.com/kubernetes-sigs/cri-tools


- name: Cache go modules and build cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
'%LocalAppData%\go-build' # Windows
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

- name: disable ipv6
if: startsWith(matrix.os, 'ubuntu')
run: |
Expand Down Expand Up @@ -279,6 +280,7 @@ jobs:
if: startsWith(matrix.os, 'ubuntu')
shell: bash
run: |
sudo chown -R $(id -u):$(id -g) $(go env GOPATH)
go install github.com/onsi/ginkgo/v2/ginkgo@latest
ginkgo version
sudo cp $(command -v ginkgo) /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crio.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false

- name: Setup environment
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false

- name: Set env
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: '1.22'
cache: false

- name: Set env
Expand Down

0 comments on commit d4d80f4

Please sign in to comment.