.github/workflows: install lbzip2 to speed up sdk creation

Our github actions use cork to create an sdk chroot, which pulls down bzipped
archives. The runners have 2 CPUs, so this unpacking could be faster if we
installed lbzip2. Cork transparently uses lbzip2.
This commit is contained in:
Jeremi Piotrowski 2022-03-24 09:45:55 +01:00
parent e3d384eb6c
commit cdd948d1c6

View File

@ -2,6 +2,8 @@
set -euo pipefail
sudo apt-get install -y lbzip2
CORK_VERSION=$(curl -sL https://api.github.com/repos/kinvolk/mantle/releases/latest | jq -r .tag_name | sed -e 's/^v//')
curl -L -o cork https://github.com/kinvolk/mantle/releases/download/v"${CORK_VERSION}"/cork-"${CORK_VERSION}"-amd64
curl -L -o cork.sig https://github.com/kinvolk/mantle/releases/download/v"${CORK_VERSION}"/cork-"${CORK_VERSION}"-amd64.sig