From d70f65fb80f4b72865f2cb1baea7b42ca6ddf7a1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 21 Jun 2024 11:26:12 +0200 Subject: [PATCH 1/2] go.mod: update to go1.19 as minimum This is the oldest version tested in CI, so set this as the minimum version. Signed-off-by: Sebastiaan van Stijn --- cmd/go.mod | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/go.mod b/cmd/go.mod index 8d84e33..f03f609 100644 --- a/cmd/go.mod +++ b/cmd/go.mod @@ -1,6 +1,6 @@ module github.com/containerd/cgroups/cmd -go 1.18 +go 1.19 replace github.com/containerd/cgroups/v3 => ../ diff --git a/go.mod b/go.mod index c39ea46..7cd153a 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/containerd/cgroups/v3 -go 1.18 +go 1.19 require ( github.com/cilium/ebpf v0.11.0 From d726ca64cdcd61579955ba749939a2ed81820222 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 21 Jun 2024 11:27:32 +0200 Subject: [PATCH 2/2] gha: also test on go1.22.x Signed-off-by: Sebastiaan van Stijn --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 546bcdd..c1482cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.20.x' + go-version: '1.22.x' cache-dependency-path: src/github.com/containerd/cgroups - name: Project checks @@ -50,7 +50,7 @@ jobs: strategy: matrix: - go-version: [1.19.x, 1.20.x] + go-version: [1.19.x, 1.21.x, 1.22.x] steps: - name: Checkout cgroups @@ -78,7 +78,7 @@ jobs: strategy: matrix: - go-version: [1.19.x, 1.20.x] + go-version: [1.19.x, 1.21.x, 1.22.x] # Ubuntu-20.04 has cgroups v1 default; Ubuntu-22.04 has cgroups v2 default. os: [ubuntu-20.04, ubuntu-22.04]