Use Go 1.18 to build and test containerd
Go 1.18 is released. Go 1.16 is no longer supported by the Go team. golangci-lint is updated since 1.44.2 doesn't support Go 1.18. Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
parent
0c701654a1
commit
a19ad9bb6f
2
.github/workflows/build-test-images.yml
vendored
2
.github/workflows/build-test-images.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.17.8]
|
||||
go-version: [1.18.0]
|
||||
os: [ubuntu-18.04, macos-10.15, windows-2019]
|
||||
|
||||
steps:
|
||||
@ -31,7 +31,7 @@ jobs:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: golangci/golangci-lint-action@v3
|
||||
with:
|
||||
version: v1.44.2
|
||||
version: v1.45.0
|
||||
skip-cache: true
|
||||
args: --timeout=5m
|
||||
|
||||
@ -46,7 +46,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@ -78,7 +78,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@ -110,7 +110,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
- uses: actions/checkout@v2
|
||||
- run: go install github.com/cpuguy83/go-md2man/v2@v2.0.1
|
||||
- run: make man
|
||||
@ -144,7 +144,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
- uses: actions/checkout@v2
|
||||
- run: |
|
||||
set -e -x
|
||||
@ -201,8 +201,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04, macos-10.15, windows-2019, windows-2022]
|
||||
go-version: ['1.16.15', '1.17.8']
|
||||
|
||||
go-version: ['1.17.8', '1.18.0']
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
@ -248,7 +247,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@ -370,7 +369,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
@ -489,7 +488,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
- uses: actions/checkout@v2
|
||||
- run: sudo -E PATH=$PATH script/setup/install-gotestsum
|
||||
- name: Tests
|
||||
|
2
.github/workflows/codeql.yml
vendored
2
.github/workflows/codeql.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.17.8
|
||||
go-version: 1.18.0
|
||||
|
||||
# Initializes the CodeQL tools for scanning.
|
||||
- name: Initialize CodeQL
|
||||
|
2
.github/workflows/images.yml
vendored
2
.github/workflows/images.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
4
.github/workflows/nightly.yml
vendored
4
.github/workflows/nightly.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
@ -135,7 +135,7 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -64,7 +64,7 @@ jobs:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '1.17.8'
|
||||
go-version: '1.18.0'
|
||||
- name: Set env
|
||||
shell: bash
|
||||
env:
|
||||
|
@ -2,7 +2,7 @@
|
||||
become: yes
|
||||
roles:
|
||||
- role: config-golang
|
||||
go_version: '1.17.8'
|
||||
go_version: '1.18'
|
||||
arch: arm64
|
||||
tasks:
|
||||
- name: Build containerd
|
||||
|
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -77,7 +77,7 @@ Vagrant.configure("2") do |config|
|
||||
config.vm.provision "install-golang", type: "shell", run: "once" do |sh|
|
||||
sh.upload_path = "/tmp/vagrant-install-golang"
|
||||
sh.env = {
|
||||
'GO_VERSION': ENV['GO_VERSION'] || "1.17.8",
|
||||
'GO_VERSION': ENV['GO_VERSION'] || "1.18",
|
||||
}
|
||||
sh.inline = <<~SHELL
|
||||
#!/usr/bin/env bash
|
||||
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
# docker build -t containerd-test --build-arg RUNC_VERSION=v1.0.0-rc94 -f Dockerfile.test ../
|
||||
|
||||
ARG GOLANG_VERSION=1.17.8
|
||||
ARG GOLANG_VERSION=1.18
|
||||
ARG GOLANG_IMAGE=golang
|
||||
|
||||
FROM ${GOLANG_IMAGE}:${GOLANG_VERSION} AS golang
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Prepare windows environment for building and running containerd tests
|
||||
|
||||
$PACKAGES= @{ mingw = "10.2.0"; git = ""; golang = "1.17.8"; make = ""; nssm = "" }
|
||||
$PACKAGES= @{ mingw = "10.2.0"; git = ""; golang = "1.18"; make = ""; nssm = "" }
|
||||
|
||||
Write-Host "Downloading chocolatey package"
|
||||
curl.exe -L "https://packages.chocolatey.org/chocolatey.0.10.15.nupkg" -o 'c:\choco.zip'
|
||||
|
Loading…
Reference in New Issue
Block a user