2020
2121 strategy :
2222 matrix :
23- os : [ubuntu-20 .04, ubuntu-22 .04, macos-13]
23+ os : [ubuntu-22 .04, ubuntu-24 .04, macos-13]
2424 include :
2525 - use_qt6 : On
26- - os : ubuntu-20.04
27- use_qt6 : Off
2826 fail-fast : false # Prefer quick result
2927
3028 runs-on : ${{ matrix.os }}
8583
8684 strategy :
8785 matrix :
88- os : [ubuntu-20 .04, ubuntu-22 .04, macos-13]
86+ os : [ubuntu-22 .04, ubuntu-24 .04, macos-13]
8987 include :
9088 - use_qt6 : On
91- - os : ubuntu-20.04
92- use_qt6 : Off
9389 fail-fast : false # Prefer quick result
9490
9591 runs-on : ${{ matrix.os }}
@@ -175,7 +171,7 @@ jobs:
175171
176172 strategy :
177173 matrix :
178- os : [ubuntu-20 .04, ubuntu-22 .04, macos-13]
174+ os : [ubuntu-22 .04, ubuntu-24 .04, macos-13]
179175 fail-fast : false # Prefer quick result
180176
181177 runs-on : ${{ matrix.os }}
@@ -209,7 +205,7 @@ jobs:
209205
210206 strategy :
211207 matrix :
212- os : [ubuntu-20 .04, ubuntu-22 .04, macos-13]
208+ os : [ubuntu-22 .04, ubuntu-24 .04, macos-13]
213209 fail-fast : false # Prefer quick result
214210
215211 runs-on : ${{ matrix.os }}
@@ -243,7 +239,7 @@ jobs:
243239
244240 strategy :
245241 matrix :
246- os : [ubuntu-20 .04, ubuntu-22 .04, macos-13]
242+ os : [ubuntu-22 .04, ubuntu-24 .04, macos-13]
247243 fail-fast : false # Prefer quick result
248244
249245 runs-on : ${{ matrix.os }}
@@ -267,7 +263,7 @@ jobs:
267263
268264 strategy :
269265 matrix :
270- os : [ubuntu-20 .04, ubuntu-22 .04, macos-13]
266+ os : [ubuntu-22 .04, ubuntu-24 .04, macos-13]
271267 include :
272268 - xdist_n : auto
273269 # FIXME: test_color_tty fails with xdist
@@ -294,8 +290,8 @@ jobs:
294290 sudo apt-get install libxml2-utils
295291
296292 # packages for strict cfg checks
297- - name : Install missing software on ubuntu 22.04 (cfg)
298- if : matrix.os == 'ubuntu-22.04'
293+ - name : Install missing software on ubuntu (cfg)
294+ if : matrix.latest
299295 run : |
300296 sudo apt-get install libcairo2-dev libcurl4-openssl-dev liblua5.3-dev libssl-dev libsqlite3-dev libcppunit-dev libsigc++-2.0-dev libgtk-3-dev libboost-all-dev libselinux-dev libwxgtk3.0-gtk3-dev xmlstarlet qtbase5-dev
301297
@@ -374,12 +370,12 @@ jobs:
374370 TEST_CPPCHECK_INJECT_BUILDDIR : injected
375371
376372 - name : Run cfg tests
377- if : matrix.os != 'ubuntu-22.04'
373+ if : ${{ !matrix.latest }}
378374 run : |
379375 make -j$(nproc) checkcfg
380376
381377 - name : Run cfg tests (strict)
382- if : matrix.os == 'ubuntu-22.04'
378+ if : matrix.latest
383379 run : |
384380 make -j$(nproc) checkcfg
385381 env :
@@ -471,7 +467,7 @@ jobs:
471467 PYTHONPATH : ./addons
472468
473469 - name : Build democlient
474- if : matrix.os == 'ubuntu-22.04'
470+ if : matrix.latest
475471 run : |
476472 warnings="-pedantic -Wall -Wextra -Wcast-qual -Wno-deprecated-declarations -Wfloat-equal -Wmissing-declarations -Wmissing-format-attribute -Wno-long-long -Wpacked -Wredundant-decls -Wundef -Wno-shadow -Wno-missing-field-initializers -Wno-missing-braces -Wno-sign-compare -Wno-multichar"
477473 g++ $warnings -c -Ilib -Iexternals/tinyxml2 democlient/democlient.cpp
@@ -490,7 +486,7 @@ jobs:
490486 selfcheck :
491487 needs : build # wait for all tests to be successful first
492488
493- runs-on : ubuntu-22 .04 # run on the latest image only
489+ runs-on : ubuntu-24 .04 # run on the latest image only
494490
495491 steps :
496492 - uses : actions/checkout@v4
0 commit comments