Add additional CI jobs to avoid accidental breakage
In general, we'd like to make sure Git works on the LTS versions of major Linux distributions. To do that, let's add CI jobs for the oldest regular (non-extended) LTS versions of the major distributions: Ubuntu 20.04, Debian 11, and RHEL 8. Because RHEL isn't available to the public at no charge, use AlmaLinux, which is binary compatible with it. Note that Debian does not offer the language-pack packages, but suitable locale support can be installed with the locales-all package. Otherwise, use the set of installation instructions which exist and are most similar to the existing supported distros. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Taylor Blau <me@ttaylorr.com>
brian m. carlson committed
Oct 31, 2024 at 23:49 UTC
ac112fd4f088040787f501b3f4b8279caa394d4e
2 files changed
+19
-4
.github/workflows/main.yml
+9
@@ -342,12 +342,21 @@ jobs:
342
- jobname: linux-musl
343
image: alpine
344
distro: alpine-latest
345
+ # Supported until 2025-04-02.
346
- jobname: linux32
347
image: i386/ubuntu:focal
348
distro: ubuntu32-20.04
349
- jobname: pedantic
350
image: fedora
351
distro: fedora-latest
352
+ # A RHEL 8 compatible distro. Supported until 2029-05-31.
353
+ - jobname: almalinux-8
354
+ image: almalinux:8
355
+ distro: almalinux-8
356
+ # Supported until 2026-08-31.
357
+ - jobname: debian-11
358
+ image: debian:11
359
+ distro: debian-11
360
env:
361
jobname: ${{matrix.vector.jobname}}
362
distro: ${{matrix.vector.distro}}
ci/install-dependencies.sh
+10
-4
@@ -29,26 +29,32 @@ alpine-*)
29
apache2 apache2-http2 apache2-proxy apache2-ssl apache2-webdav apr-util-dbd_sqlite3 \
30
bash cvs gnupg perl-cgi perl-dbd-sqlite perl-io-tty >/dev/null
31
;;
32
-fedora-*)
32
+fedora-*|almalinux-*)
33
dnf -yq update >/dev/null &&
34
dnf -yq install make gcc findutils diffutils perl python3 gettext zlib-devel expat-devel openssl-devel curl-devel pcre2-devel >/dev/null
35
;;
36
-ubuntu-*|ubuntu32-*)
36
+ubuntu-*|ubuntu32-*|debian-*)
37
# Required so that apt doesn't wait for user input on certain packages.
38
export DEBIAN_FRONTEND=noninteractive
39
40
case "$distro" in
41
ubuntu-*)
42
SVN='libsvn-perl subversion'
43
+ LANGUAGES='language-pack-is'
44
;;
44
- *)
45
+ ubuntu32-*)
46
SVN=
47
+ LANGUAGES='language-pack-is'
48
+ ;;
49
+ *)
50
+ SVN='libsvn-perl subversion'
51
+ LANGUAGES='locales-all'
52
;;
53
esac
54
55
sudo apt-get -q update
56
sudo apt-get -q -y install \
51
- language-pack-is apache2 cvs cvsps git gnupg $SVN \
57
+ $LANGUAGES apache2 cvs cvsps git gnupg $SVN \
58
make libssl-dev libcurl4-openssl-dev libexpat-dev wget sudo default-jre \
59
tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl \
60
libemail-valid-perl libio-pty-perl libio-socket-ssl-perl libnet-smtp-ssl-perl libdbd-sqlite3-perl libcgi-pm-perl \