]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
ci: Fix build on Ubuntu 18.04
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 5 Mar 2021 06:13:53 +0000 (07:13 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 5 Mar 2021 06:29:31 +0000 (07:29 +0100)
For some reason libzstd1-dev now has broken dependencies in GitLab’s
Ubuntu 18.04 environment. Fix this by installing libzstd-dev instead.

.github/workflows/build.yaml
.github/workflows/codeql-analysis.yaml

index c222a199cfa25729f558508bf2b967d0fac50480..662f491d050d0e8edd7c17355cbe6e70d8a2448c 100644 (file)
@@ -92,11 +92,10 @@ jobs:
             sudo apt-get update
 
             # Install ld.gold (binutils) and ld.lld on different runs.
-            # Binding to Ubuntu 20 has no special meaning.
-            if [ "${{ matrix.config.os }}" = "ubuntu-20.04" ]; then
-              sudo apt-get install -y ninja-build elfutils libzstd-dev lld
-            else
+            if [ "${{ matrix.config.os }}" = "ubuntu-16.04" ]; then
               sudo apt-get install -y ninja-build elfutils libzstd1-dev binutils
+            else
+              sudo apt-get install -y ninja-build elfutils libzstd-dev lld
             fi
 
             if [ "${{ matrix.config.compiler }}" = "gcc" ]; then
@@ -160,7 +159,7 @@ jobs:
             BUILDDIR: .
             CCACHE_LOC: .
             CMAKE_PARAMS: -DCMAKE_BUILD_TYPE=Debug -DENABLE_TRACING=1 -DCMAKE_CXX_STANDARD=14
-            apt_get: elfutils libzstd1-dev
+            apt_get: elfutils libzstd-dev
 
           - name: Linux GCC 32-bit
             os: ubuntu-18.04
@@ -180,7 +179,7 @@ jobs:
             CMAKE_PARAMS: -DCMAKE_BUILD_TYPE=CI -DZSTD_FROM_INTERNET=ON
             ENABLE_CACHE_CLEANUP_TESTS: 1
             CUDA: 10.1.243-1
-            apt_get: elfutils libzstd1-dev
+            apt_get: elfutils libzstd-dev
 
           - name: Linux MinGW 32-bit
             os: ubuntu-18.04
@@ -258,13 +257,13 @@ jobs:
             os: ubuntu-18.04
             EXTRA_CMAKE_BUILD_FLAGS: --target doc-html
             RUN_TESTS: none
-            apt_get: libzstd1-dev asciidoc docbook-xml docbook-xsl
+            apt_get: libzstd-dev asciidoc docbook-xml docbook-xsl
 
           - name: Manual page
             os: ubuntu-18.04
             EXTRA_CMAKE_BUILD_FLAGS: --target doc-man-page
             RUN_TESTS: none
-            apt_get: libzstd1-dev asciidoc xsltproc docbook-xml docbook-xsl
+            apt_get: libzstd-dev asciidoc xsltproc docbook-xml docbook-xsl
 
           - name: Clang-Tidy
             os: ubuntu-18.04
index 972b6b9a14e194779836ecc95a55b9863363f018..b19e807632d29d79a3808663342f7d3d4d3c924f 100644 (file)
@@ -31,7 +31,7 @@ jobs:
         fetch-depth: 2
 
     - name: Install dependencies
-      run: sudo apt-get update && sudo apt-get install ninja-build elfutils libzstd1-dev
+      run: sudo apt-get update && sudo apt-get install ninja-build elfutils libzstd-dev
 
     - name: Initialize CodeQL
       uses: github/codeql-action/init@v1