Stop using checkout and other actions for Ubuntu 18.04 CI builds

Even actions/checkout@v3 doesn't work in the container any longer,
because none of JS actions can run on Ubuntu 18.04 which doesn't have a
new enough glibc version any longer, so perform the checkout manually.

Disable ccache for the builds using this OS too for the same reason:
even though we could install ccache itself manually too, we don't have
any easy way to save and restore its cache without this action.

This also means that we can use v4 of the action for the other builds.
This commit is contained in:
Vadim Zeitlin
2024-11-27 16:47:47 +01:00
parent bab39fcd4d
commit 9d1c5b108c
+16 -2
View File
@@ -159,6 +159,18 @@ jobs:
# - xvfb is used for running the GUI tests.
apt-get update -qq
apt-get install -qq coreutils ${compiler-g++} git locales make pkg-config python3 python3-pip sudo xvfb
# Checkout action doesn't work under Ubuntu 18.04 any more, so
# run checkout manually.
git config --global --add safe.directory $GITHUB_WORKSPACE
git config --global gc.auto 0
git init $GITHUB_WORKSPACE
cd $GITHUB_WORKSPACE
git remote add origin $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
git fetch --depth=1 origin $GITHUB_REF
git checkout FETCH_HEAD
git submodule update --init --depth=1 --recursive
git log -1 --format='%H'
;;
'')
@@ -170,11 +182,13 @@ jobs:
esac
- name: Checkout
uses: actions/checkout@v3
if: matrix.container == ''
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install CCache
if: matrix.container == ''
uses: hendrikmuhs/ccache-action@v1.2.3
with:
key: ${{ matrix.name }}
@@ -245,7 +259,7 @@ jobs:
echo
echo "ccache version:"
ccache --version
ccache --version || echo "ccache not available"
echo
- name: Configuring