Skip to content

Commit dbf38e9

Browse files
committed
Merge branch 'jk/ci-linux32-update' into maint-2.46
CI updates * jk/ci-linux32-update: ci: add Ubuntu 16.04 job to GitLab CI ci: use regular action versions for linux32 job ci: use more recent linux32 image ci: unify ubuntu and ubuntu32 dependencies ci: drop run-docker scripts
2 parents af51e46 + 7cd8f1c commit dbf38e9

File tree

6 files changed

+50
-141
lines changed

6 files changed

+50
-141
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ jobs:
339339
image: alpine
340340
distro: alpine-latest
341341
- jobname: linux32
342-
image: daald/ubuntu32:xenial
343-
distro: ubuntu32-16.04
342+
image: i386/ubuntu:focal
343+
distro: ubuntu32-20.04
344344
- jobname: pedantic
345345
image: fedora
346346
distro: fedora-latest
@@ -350,17 +350,17 @@ jobs:
350350
runs-on: ubuntu-latest
351351
container: ${{matrix.vector.image}}
352352
steps:
353-
- uses: actions/checkout@v4
354-
if: matrix.vector.jobname != 'linux32'
355-
- uses: actions/checkout@v1 # cannot be upgraded because Node.js Actions aren't supported in this container
353+
- name: prepare libc6 for actions
356354
if: matrix.vector.jobname == 'linux32'
355+
run: apt -q update && apt -q -y install libc6-amd64 lib64stdc++6
356+
- uses: actions/checkout@v4
357357
- run: ci/install-dependencies.sh
358358
- run: ci/run-build-and-tests.sh
359359
- name: print test failures
360360
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
361361
run: ci/print-test-failures.sh
362362
- name: Upload failed tests' directories
363-
if: failure() && env.FAILED_TEST_ARTIFACTS != '' && matrix.vector.jobname != 'linux32'
363+
if: failure() && env.FAILED_TEST_ARTIFACTS != ''
364364
uses: actions/upload-artifact@v4
365365
with:
366366
name: failed-tests-${{matrix.vector.jobname}}

.gitlab-ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ test:linux:
2525
fi
2626
parallel:
2727
matrix:
28+
- jobname: linux-old
29+
image: ubuntu:16.04
30+
CC: gcc
2831
- jobname: linux-sha256
2932
image: ubuntu:latest
3033
CC: clang

ci/install-dependencies.sh

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -33,37 +33,49 @@ fedora-*)
3333
dnf -yq update >/dev/null &&
3434
dnf -yq install make gcc findutils diffutils perl python3 gettext zlib-devel expat-devel openssl-devel curl-devel pcre2-devel >/dev/null
3535
;;
36-
ubuntu-*)
36+
ubuntu-*|ubuntu32-*)
3737
# Required so that apt doesn't wait for user input on certain packages.
3838
export DEBIAN_FRONTEND=noninteractive
3939

40+
case "$distro" in
41+
ubuntu-*)
42+
SVN='libsvn-perl subversion'
43+
;;
44+
*)
45+
SVN=
46+
;;
47+
esac
48+
4049
sudo apt-get -q update
4150
sudo apt-get -q -y install \
42-
language-pack-is libsvn-perl apache2 cvs cvsps git gnupg subversion \
51+
language-pack-is apache2 cvs cvsps git gnupg $SVN \
4352
make libssl-dev libcurl4-openssl-dev libexpat-dev wget sudo default-jre \
4453
tcl tk gettext zlib1g-dev perl-modules liberror-perl libauthen-sasl-perl \
4554
libemail-valid-perl libio-pty-perl libio-socket-ssl-perl libnet-smtp-ssl-perl libdbd-sqlite3-perl libcgi-pm-perl \
4655
${CC_PACKAGE:-${CC:-gcc}} $PYTHON_PACKAGE
4756

48-
mkdir --parents "$CUSTOM_PATH"
49-
wget --quiet --directory-prefix="$CUSTOM_PATH" \
50-
"$P4WHENCE/bin.linux26x86_64/p4d" "$P4WHENCE/bin.linux26x86_64/p4"
51-
chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4"
52-
53-
wget --quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
54-
tar -xzf "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" \
55-
-C "$CUSTOM_PATH" --strip-components=1 "git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs"
56-
rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
57-
58-
wget --quiet "$JGITWHENCE" --output-document="$CUSTOM_PATH/jgit"
59-
chmod a+x "$CUSTOM_PATH/jgit"
60-
;;
61-
ubuntu32-*)
62-
sudo linux32 --32bit i386 sh -c '
63-
apt update >/dev/null &&
64-
apt install -y build-essential libcurl4-openssl-dev \
65-
libssl-dev libexpat-dev gettext python >/dev/null
66-
'
57+
case "$distro" in
58+
ubuntu-16.04)
59+
# Does not support JGit, but we also don't really care about
60+
# the others. We rather care whether Git still compiles and
61+
# runs fine overall.
62+
;;
63+
ubuntu-*)
64+
mkdir --parents "$CUSTOM_PATH"
65+
66+
wget --quiet --directory-prefix="$CUSTOM_PATH" \
67+
"$P4WHENCE/bin.linux26x86_64/p4d" "$P4WHENCE/bin.linux26x86_64/p4"
68+
chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4"
69+
70+
wget --quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
71+
tar -xzf "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" \
72+
-C "$CUSTOM_PATH" --strip-components=1 "git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs"
73+
rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
74+
75+
wget --quiet "$JGITWHENCE" --output-document="$CUSTOM_PATH/jgit"
76+
chmod a+x "$CUSTOM_PATH/jgit"
77+
;;
78+
esac
6779
;;
6880
macos-*)
6981
export HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_NO_INSTALL_CLEANUP=1

ci/lib.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,14 @@ ubuntu-*)
336336
fi
337337
MAKEFLAGS="$MAKEFLAGS PYTHON_PATH=/usr/bin/$PYTHON_PACKAGE"
338338

339-
export GIT_TEST_HTTPD=true
339+
case "$distro" in
340+
ubuntu-16.04)
341+
# Apache is too old for HTTP/2.
342+
;;
343+
*)
344+
export GIT_TEST_HTTPD=true
345+
;;
346+
esac
340347

341348
# The Linux build installs the defined dependency versions below.
342349
# The OS X build installs much more recent versions, whichever

ci/run-docker-build.sh

Lines changed: 0 additions & 66 deletions
This file was deleted.

ci/run-docker.sh

Lines changed: 0 additions & 47 deletions
This file was deleted.

0 commit comments

Comments
 (0)