File tree Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Expand file tree Collapse file tree 2 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
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 : |
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
Original file line number Diff line number Diff line change 1212jobs :
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
You can’t perform that action at this time.
0 commit comments