don't build gtest in CI (#8323)
authorGereon Kremer <gkremer@cs.stanford.edu>
Thu, 17 Mar 2022 00:37:00 +0000 (01:37 +0100)
committerGitHub <noreply@github.com>
Thu, 17 Mar 2022 00:37:00 +0000 (00:37 +0000)
We currently build gtest in /usr/bin/... with every CI job on ubuntu. This PR removes this and uses our own external project instead. This way, we only build gtest if necessary and then cache these builds with ccache (saving some CI time).

.github/actions/install-dependencies/action.yml

index 33a645490fa312d695dedc6b7723eaae3dceebd4..3c06132de649b1381ec9e1a4651a6ed2f83f3128 100644 (file)
@@ -26,16 +26,11 @@ runs:
           libcln-dev \
           libedit-dev \
           libgmp-dev \
-          libgtest-dev \
           libtinfo-dev \
           flex \
           libfl-dev \
           flexc++
         python3 -m pip install pexpect setuptools toml
-        cd /usr/src/googletest
-        sudo cmake .
-        sudo cmake --build . --target install
-        cd -
         # Make ImageVersion accessible as env.image_version. Environment
         # variables of the runner are not automatically imported:
         #