Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
CI: switch to packaged libzstd1 and libb2
Browse files Browse the repository at this point in the history
Caching the source-compiled variants via our Docker cache can lead to "Illegal
instruction" errors when deploying the docker image on an older machines.
  • Loading branch information
leezu committed Mar 16, 2020
1 parent d495f22 commit 157ca6b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion ci/docker/install/deb_ubuntu_ccache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,17 @@ set -ex

pushd .

dist = $(awk -F= '/^NAME/{print $2}' /etc/os-release)
if [ $dist == "Ubuntu" ]; then
zstd = "libzstd1-dev"
else # Debian
zstd = "libzstd-dev"
fi

apt update || true
apt install -y \
$zstd \
libb2-dev \
autoconf \
xsltproc

Expand Down Expand Up @@ -55,7 +64,7 @@ cd ccache
git checkout 2e7154e67a5dd56852dae29d4c418d4ddc07c230

./autogen.sh
./configure --disable-man --with-libzstd-from-internet --with-libb2-from-internet
./configure --disable-man
make -j$(nproc)
make install

Expand Down

0 comments on commit 157ca6b

Please sign in to comment.