Skip to content

Commit 1705b93

Browse files
committed
CI: bump actions versions to use node.js 20, where applicable.
1 parent 79ca379 commit 1705b93

12 files changed

+63
-48
lines changed

.github/workflows/centos-and-fedora.yml

Lines changed: 26 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,19 @@ jobs:
109109

110110
env: ${{ matrix.env }}
111111
steps:
112-
- name: Checkout
112+
# CentOS 7 doesn't support node.js:20. To be removed once it is EOLed at June, 2024.
113+
- name: Checkout v3
114+
if: matrix.image.container == 'centos-7-amd64'
113115
uses: actions/checkout@v3
114116
with:
115117
submodules: true
116118

119+
- name: Checkout v4
120+
if: matrix.image.container != 'centos-7-amd64'
121+
uses: actions/checkout@v4
122+
with:
123+
submodules: true
124+
117125
- name: Setup environment
118126
run: |
119127
set -o errexit -o pipefail -o noclobber -o nounset
@@ -197,7 +205,7 @@ jobs:
197205

198206
- name: Checkout shell test framework
199207
if: env.BUILD_MODE != 'coverage' && env.SHARED_LIBS == 'on'
200-
uses: actions/checkout@v3
208+
uses: actions/checkout@v4
201209
with:
202210
repository: kward/shunit2
203211
path: ci/tests/shunit2
@@ -227,28 +235,35 @@ jobs:
227235
- name: Install rpm tools
228236
run: yum -y install rpm-build
229237

230-
- name: Checkout
238+
- name: Checkout v3
239+
if: matrix.image.container == 'centos-7-amd64'
231240
uses: actions/checkout@v3
232241
with:
233242
submodules: true
234243

244+
- name: Checkout v4
245+
if: matrix.image.container != 'centos-7-amd64'
246+
uses: actions/checkout@v4
247+
with:
248+
submodules: true
249+
235250
- name: Configure
236251
run: cmake -B build -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF
237252

238253
- name: Package SRPM
239254
run: cpack -B build/SRPM -G RPM --config build/CPackSourceConfig.cmake
240255

241256
- name: Upload SRPM
242-
uses: actions/upload-artifact@v3
257+
uses: actions/upload-artifact@v4
243258
with:
244259
name: 'SRPM ${{ matrix.image.name }}'
245260
path: 'build/SRPM/*.src.rpm'
246261
retention-days: 5
247262

248263
- name: Stash packaging tests
249-
uses: actions/upload-artifact@v3
264+
uses: actions/upload-artifact@v4
250265
with:
251-
name: tests
266+
name: 'tests-${{ matrix.image.container }}'
252267
path: 'ci/tests/**'
253268
retention-days: 1
254269

@@ -273,7 +288,7 @@ jobs:
273288
run: yum -y install rpm-build
274289

275290
- name: Download SRPM
276-
uses: actions/download-artifact@v3
291+
uses: actions/download-artifact@v4
277292
with:
278293
name: 'SRPM ${{ matrix.image.name }}'
279294
path: ~/rpmbuild/SRPMS
@@ -293,7 +308,7 @@ jobs:
293308
run: cpack -G RPM -B ~/rpmbuild/SOURCES/RPMS --config ~/rpmbuild/SOURCES/BUILD/CPackConfig.cmake
294309

295310
- name: Upload Artifact
296-
uses: actions/upload-artifact@v3
311+
uses: actions/upload-artifact@v4
297312
with:
298313
name: 'RPM ${{ matrix.image.name}}'
299314
path: '~/rpmbuild/SOURCES/RPMS/*.rpm'
@@ -346,18 +361,18 @@ jobs:
346361
run: sudo yum -y install findutils
347362

348363
- name: Download rnp rpms
349-
uses: actions/download-artifact@v3
364+
uses: actions/download-artifact@v4
350365
with:
351366
name: 'RPM ${{ matrix.image.name}}'
352367

353368
- name: Checkout shell test framework
354-
uses: actions/checkout@v3
369+
uses: actions/checkout@v4
355370
with:
356371
repository: kward/shunit2
357372
path: ci/tests/shunit2
358373

359374
- name: Unstash tests
360-
uses: actions/download-artifact@v3
375+
uses: actions/download-artifact@v4
361376
with:
362377
name: tests
363378
path: ci/tests

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v3
27+
uses: actions/checkout@v4
2828
with:
2929
submodules: true
3030

@@ -52,13 +52,13 @@ jobs:
5252
export PATH=$(pwd)/cmake314/bin:${PATH} && echo "PATH=$PATH" >> $GITHUB_ENV
5353
5454
- name: Initialize CodeQL
55-
uses: github/codeql-action/init@v2
55+
uses: github/codeql-action/init@v3
5656
with:
5757
languages: ${{ matrix.language }}
5858
queries: +security-and-quality
5959

6060
- name: Autobuild
61-
uses: github/codeql-action/autobuild@v2
61+
uses: github/codeql-action/autobuild@v3
6262
if: ${{ matrix.language == 'python' }}
6363

6464
- name: Build cpp
@@ -70,6 +70,6 @@ jobs:
7070
make -j2
7171
7272
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v2
73+
uses: github/codeql-action/analyze@v3
7474
with:
7575
category: "/language:${{ matrix.language }}"

.github/workflows/coverity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
timeout-minutes: 20
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 1
1616
submodules: true

.github/workflows/debian.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ jobs:
6565
steps:
6666
- name: Checkout on x86_x64
6767
if: matrix.image.cpu == 'x86_64'
68-
uses: actions/checkout@v3
68+
uses: actions/checkout@v4
6969
with:
7070
submodules: true
7171

7272
- name: Checkout on i386
7373
if: matrix.image.cpu == 'i386'
74-
uses: actions/checkout@v1
74+
uses: actions/checkout@v4
7575
with:
7676
submodules: true
7777

.github/workflows/fuzzing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
fuzz-seconds: 300
3535
dry-run: false
3636
- name: Upload Crash
37-
uses: actions/upload-artifact@v2
37+
uses: actions/upload-artifact@v4
3838
if: failure() && steps.build.outcome == 'success'
3939
with:
4040
name: artifacts

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
if: "!contains(github.event.head_commit.message, 'skip ci')"
2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
with:
2626
fetch-depth: 1
2727
submodules: true
@@ -31,7 +31,7 @@ jobs:
3131
shellcheck:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
3535
with:
3636
fetch-depth: 1
3737
submodules: true
@@ -45,12 +45,12 @@ jobs:
4545
if: "!contains(github.event.head_commit.message, 'skip ci')"
4646
timeout-minutes: 10
4747
steps:
48-
- uses: actions/checkout@v3
48+
- uses: actions/checkout@v4
4949
with:
5050
fetch-depth: 1
5151
path: rnp
5252
- name: Download latest version.cmake
53-
uses: actions/checkout@v3
53+
uses: actions/checkout@v4
5454
with:
5555
repository: rnpgp/cmake-versioning
5656
fetch-depth: 1

.github/workflows/macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
timeout-minutes: 250
8181

8282
steps:
83-
- uses: actions/checkout@v3
83+
- uses: actions/checkout@v4
8484
with:
8585
fetch-depth: 1
8686
submodules: true
@@ -112,7 +112,7 @@ jobs:
112112

113113
- name: Botan2 cache
114114
id: cache
115-
uses: actions/cache@v3
115+
uses: actions/cache@v4
116116
if: matrix.backend == 'botan'
117117
with:
118118
path: Botan-${{ env.BOTAN_VERSION }}
@@ -164,7 +164,7 @@ jobs:
164164
165165
- name: Checkout shell test framework
166166
if: matrix.shared_libs == 'on'
167-
uses: actions/checkout@v3
167+
uses: actions/checkout@v4
168168
with:
169169
repository: kward/shunit2
170170
path: ci/tests/shunit2

.github/workflows/nix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
if: "!contains(github.event.head_commit.message, 'skip ci')"
3636

3737
steps:
38-
- uses: actions/checkout@v3
38+
- uses: actions/checkout@v4
3939
with:
4040
fetch-depth: 1
4141
submodules: true

.github/workflows/time-machine.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
env: ${{ matrix.env }}
8585
steps:
8686
- name: Checkout
87-
uses: actions/checkout@v3
87+
uses: actions/checkout@v4
8888
with:
8989
submodules: true
9090

@@ -117,7 +117,7 @@ jobs:
117117
run: tar -czvf build.tar.gz build
118118

119119
- name: Upload build files
120-
uses: actions/upload-artifact@v3
120+
uses: actions/upload-artifact@v4
121121
with:
122122
name: 'build-${{ matrix.env.CC }}-${{ matrix.image.backend }}'
123123
path: 'build.tar.gz'
@@ -152,7 +152,7 @@ jobs:
152152
run: dnf -y install libfaketime
153153

154154
- name: Checkout
155-
uses: actions/checkout@v3
155+
uses: actions/checkout@v4
156156
with:
157157
submodules: true
158158

@@ -171,7 +171,7 @@ jobs:
171171
printf "\nrnpuser\tsoft\tnproc\tunlimited\n" > /etc/security/limits.d/30-rnpuser.conf
172172
173173
- name: Download build files
174-
uses: actions/download-artifact@v3
174+
uses: actions/download-artifact@v4
175175
with:
176176
name: 'build-${{ matrix.env.CC }}-${{ matrix.image.backend }}'
177177

.github/workflows/ubuntu.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
timeout-minutes: 50
9191
steps:
9292
- name: Checkout
93-
uses: actions/checkout@v3
93+
uses: actions/checkout@v4
9494
with:
9595
fetch-depth: 1
9696
submodules: true
@@ -125,7 +125,7 @@ jobs:
125125
timeout-minutes: 30
126126
steps:
127127
- name: Checkout
128-
uses: actions/checkout@v3
128+
uses: actions/checkout@v4
129129
with:
130130
fetch-depth: 1
131131
submodules: true
@@ -166,7 +166,7 @@ jobs:
166166
timeout-minutes: 30
167167
steps:
168168
- name: Checkout
169-
uses: actions/checkout@v3
169+
uses: actions/checkout@v4
170170
with:
171171
fetch-depth: 1
172172
submodules: true
@@ -224,7 +224,7 @@ jobs:
224224
sudo apt-get -y install cmake libjson-c-dev libbotan-2-dev asciidoctor
225225
226226
- name: Checkout sexpp
227-
uses: actions/checkout@v3
227+
uses: actions/checkout@v4
228228
with:
229229
repository: rnpgp/sexpp
230230
path: sexpp
@@ -248,7 +248,7 @@ jobs:
248248
run: rm -rf sexpp
249249

250250
- name: Checkout
251-
uses: actions/checkout@v3
251+
uses: actions/checkout@v4
252252
with:
253253
fetch-depth: 1
254254
submodules: false
@@ -278,7 +278,7 @@ jobs:
278278
timeout-minutes: 30
279279
steps:
280280
- name: Checkout
281-
uses: actions/checkout@v3
281+
uses: actions/checkout@v4
282282
with:
283283
fetch-depth: 1
284284
submodules: true
@@ -301,14 +301,14 @@ jobs:
301301
run: cpack -B build/source-deb -G DEB --config build/CPackSourceConfig.cmake
302302

303303
- name: Upload source package
304-
uses: actions/upload-artifact@v3
304+
uses: actions/upload-artifact@v4
305305
with:
306306
name: 'source-debian'
307307
path: 'build/source-deb/*.deb'
308308
retention-days: 5
309309

310310
- name: Stash packaging tests
311-
uses: actions/upload-artifact@v3
311+
uses: actions/upload-artifact@v4
312312
with:
313313
name: tests
314314
path: 'ci/tests/**'
@@ -326,7 +326,7 @@ jobs:
326326
sudo apt-get -y install cmake libjson-c-dev libbotan-2-dev asciidoctor
327327
328328
- name: Download source package
329-
uses: actions/download-artifact@v3
329+
uses: actions/download-artifact@v4
330330
with:
331331
name: 'source-debian'
332332
path: source-debian
@@ -351,7 +351,7 @@ jobs:
351351
run: cpack -G DEB -B debian --config rnp/build/CPackConfig.cmake
352352

353353
- name: Upload binary package
354-
uses: actions/upload-artifact@v3
354+
uses: actions/upload-artifact@v4
355355
with:
356356
name: 'debian'
357357
path: 'debian/*.deb'
@@ -363,18 +363,18 @@ jobs:
363363
timeout-minutes: 30
364364
steps:
365365
- name: Download enp deb file
366-
uses: actions/download-artifact@v3
366+
uses: actions/download-artifact@v4
367367
with:
368368
name: 'debian'
369369

370370
- name: Checkout shell test framework
371-
uses: actions/checkout@v3
371+
uses: actions/checkout@v4
372372
with:
373373
repository: kward/shunit2
374374
path: ci/tests/shunit2
375375

376376
- name: Unstash tests
377-
uses: actions/download-artifact@v3
377+
uses: actions/download-artifact@v4
378378
with:
379379
name: tests
380380
path: ci/tests

0 commit comments

Comments
 (0)