From 16cfefe715848cad66b5e187633f7530c05c7a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Vasconcellos?= Date: Wed, 31 Jul 2024 18:08:16 -0300 Subject: [PATCH] Install required dependencies for test in CI --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b6fedf1..46d14dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,34 @@ jobs: image=moby/buildkit:master network=host + - name: Install test dependencies + run: | + set -euxo pipefail + + sudo apt-get update + sudo apt-get install -y \ + zip \ + xz-utils \ + lz4 \ + gzip \ + lzop \ + zstd \ + bzip2 \ + libarchive-tools \ + xorriso \ + pax + + curl -L "https://www.rarlab.com/rar/rarlinux-x64-701.tar.gz" \ + | tar -czf- -C "${HOME}" + + mv "${HOME}/rar"/{rar,unrar} /usr/bin + mv "${HOME}/rar/default.sfx" /usr/lib/default.sfx + + curl -L "https://www.7-zip.org/a/7z2407-linux-x64.tar.xz" \ + | tar -xJf- -C "$HOME" + + mv "$HOME"/{7zz,7zzs} /usr/bin + - name: Build and test archive-wasm run: | set -euxo pipefail