ci: use latest Ubuntu release

Both GitHub Actions and GitLab CI use the "ubuntu:latest" tag as the default image for most jobs. This tag is somewhat misleading though, as it does not refer to the latest release of Ubuntu, but to the latest LTS release thereof. But as we already have a couple of jobs exercising the oldest LTS release of Ubuntu that Git still supports, it would make more sense to test the oldest and youngest versions of Ubuntu. Adapt these jobs to instead use the "ubuntu:rolling" tag, which refers to the actual latest release, which currently is Ubuntu 24.10. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Jan 10, 2025 at 12:32 UTC 6bc06e8f20a8cd67d6e49d31472d5bc8c048cae0
2 files changed +14 -14
.github/workflows/main.yml
+7 -7
@@ -314,10 +314,10 @@ jobs:
314 matrix:
315 vector:
316 - jobname: linux-sha256
317 - image: ubuntu:latest
317 + image: ubuntu:rolling
318 cc: clang
319 - jobname: linux-reftable
320 - image: ubuntu:latest
320 + image: ubuntu:rolling
321 cc: clang
322 - jobname: linux-gcc
323 image: ubuntu:20.04
@@ -328,19 +328,19 @@ jobs:
328 cc: gcc
329 cc_package: gcc-8
330 - jobname: linux-gcc-default
331 - image: ubuntu:latest
331 + image: ubuntu:rolling
332 cc: gcc
333 - jobname: linux-leaks
334 - image: ubuntu:latest
334 + image: ubuntu:rolling
335 cc: gcc
336 - jobname: linux-reftable-leaks
337 - image: ubuntu:latest
337 + image: ubuntu:rolling
338 cc: gcc
339 - jobname: linux-asan-ubsan
340 - image: ubuntu:latest
340 + image: ubuntu:rolling
341 cc: clang
342 - jobname: linux-meson
343 - image: ubuntu:latest
343 + image: ubuntu:rolling
344 cc: gcc
345 - jobname: linux-musl
346 image: alpine:latest
.gitlab-ci.yml
+7 -7
@@ -37,10 +37,10 @@ test:linux:
37 parallel:
38 matrix:
39 - jobname: linux-sha256
40 - image: ubuntu:latest
40 + image: ubuntu:rolling
41 CC: clang
42 - jobname: linux-reftable
43 - image: ubuntu:latest
43 + image: ubuntu:rolling
44 CC: clang
45 - jobname: linux-gcc
46 image: ubuntu:20.04
@@ -51,16 +51,16 @@ test:linux:
51 CC: gcc
52 CC_PACKAGE: gcc-8
53 - jobname: linux-gcc-default
54 - image: ubuntu:latest
54 + image: ubuntu:rolling
55 CC: gcc
56 - jobname: linux-leaks
57 - image: ubuntu:latest
57 + image: ubuntu:rolling
58 CC: gcc
59 - jobname: linux-reftable-leaks
60 - image: ubuntu:latest
60 + image: ubuntu:rolling
61 CC: gcc
62 - jobname: linux-asan-ubsan
63 - image: ubuntu:latest
63 + image: ubuntu:rolling
64 CC: clang
65 - jobname: pedantic
66 image: fedora:latest
@@ -69,7 +69,7 @@ test:linux:
69 - jobname: linux32
70 image: i386/ubuntu:20.04
71 - jobname: linux-meson
72 - image: ubuntu:latest
72 + image: ubuntu:rolling
73 CC: gcc
74 artifacts:
75 paths: