]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
ci: Extract common package list to a variable
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 10 Jul 2021 18:42:50 +0000 (20:42 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 10 Jul 2021 18:42:50 +0000 (20:42 +0200)
.github/workflows/build.yaml

index fef0dbfaddfa95dddd3c5c44868769e21994d815..f385e90ec3903b3c0a2aa8512d9208c8ac793e9c 100644 (file)
@@ -91,11 +91,12 @@ jobs:
           if [ "${{ runner.os }}" = "Linux" ]; then
             sudo apt-get update
 
-            # Install ld.gold (binutils) and ld.lld on different runs.
+            packages="elfutils libhiredis-dev libzstd-dev ninja-build pkg-config python3 redis-server redis-tools"
+            # Install ld.gold (binutils) and ld.lld (lld) on different runs.
             if [ "${{ matrix.config.os }}" = "ubuntu-18.04" ]; then
-              sudo apt-get install -y ninja-build elfutils libzstd-dev pkg-config libhiredis-dev redis-server redis-tools binutils python3
+              sudo apt-get install -y $packages binutils
             else
-              sudo apt-get install -y ninja-build elfutils libzstd-dev pkg-config libhiredis-dev redis-server redis-tools lld python3
+              sudo apt-get install -y $packages lld
             fi
 
             if [ "${{ matrix.config.compiler }}" = "gcc" ]; then