Skip to content

Commit d03f8c3

Browse files
authored
Merge pull request #110 from kolyshkin/ci-bumps
CI bumps Signed-off-by: Kir Kolyshkin <[email protected]> Acked-by: Tom Hromatka <[email protected]>
2 parents 28423ed + bfe6e48 commit d03f8c3

File tree

2 files changed

+24
-17
lines changed

2 files changed

+24
-17
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,17 @@ on:
1111

1212
jobs:
1313
test:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-24.04
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
go-version: [1.19.x, 1.20.x]
19-
libseccomp: ["v2.3.3", "v2.4.3", "v2.5.4", "HEAD"]
18+
go-version: [1.22.x, 1.23.x]
19+
libseccomp: ["v2.3.3", "v2.4.4", "v2.5.5", "HEAD"]
2020

2121
steps:
2222

2323
- name: checkout
24-
uses: actions/checkout@v3
25-
26-
- name: install go ${{ matrix.go-version }}
27-
uses: actions/setup-go@v3
28-
with:
29-
go-version: ${{ matrix.go-version }}
24+
uses: actions/checkout@v4
3025

3126
- name: build libseccomp ${{ matrix.libseccomp }}
3227
run: |
@@ -69,6 +64,17 @@ jobs:
6964
# For TestExpectedSeccompVersion.
7065
echo "_EXPECTED_LIBSECCOMP_VERSION=$VER" >> $GITHUB_ENV
7166
67+
- name: install go ${{ matrix.go-version }}
68+
uses: actions/setup-go@v5
69+
with:
70+
go-version: ${{ matrix.go-version }}
71+
# Add libseccomp.pc path so that setup-go adds this file hash to cache key.
72+
# This way, we'll have different caches for different libseccomp versions.
73+
cache-dependency-path: |
74+
go.sum
75+
${{ env.PKG_CONFIG_LIBDIR }}/libseccomp.pc
76+
77+
7278
- name: build
7379
run: make check-build
7480

.github/workflows/validate.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,24 @@ on:
1212
jobs:
1313

1414
lint:
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818
- name: install deps
1919
run: |
2020
sudo apt -q update
2121
sudo apt -q install libseccomp-dev
22-
- uses: golangci/golangci-lint-action@v3
22+
- uses: golangci/golangci-lint-action@v6
2323
with:
24-
version: v1.51
24+
version: v1.60
2525

2626
codespell:
27-
runs-on: ubuntu-20.04
27+
runs-on: ubuntu-24.04
2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
- name: install deps
31-
# Version of codespell bundled with Ubuntu is way old, so use pip.
32-
run: pip install codespell
31+
# Version of codespell bundled with Ubuntu will become old, so use pip.
32+
# OTOH, we want to pin it to specific version to avoid breaking CI.
33+
run: pip install --break-system-packages codespell==v2.3.0
3334
- name: run codespell
3435
run: codespell

0 commit comments

Comments
 (0)