Skip to content

Commit

Permalink
CI: install CRIU only if CONFIG_CHECKPOINT_RESTORE is enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Dec 15, 2023
1 parent 9d5f365 commit e1ad43c
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,18 @@ jobs:
env:
PREFIX: https://download.opensuse.org/repositories/devel:/tools:/criu/xUbuntu
run: |
# criu repo
REPO=${PREFIX}_$(echo ${{ matrix.os }} | sed 's/.*-//')
curl -fSsLl $REPO/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_tools_criu.gpg > /dev/null
echo "deb $REPO/ /" | sudo tee /etc/apt/sources.list.d/criu.list
packages="libseccomp-dev sshfs"
if script/check-config.sh | grep -q "CONFIG_CHECKPOINT_RESTORE:\s*enabled"; then
# criu repo
REPO=${PREFIX}_$(echo ${{ matrix.os }} | sed 's/.*-//')
curl -fSsLl $REPO/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/devel_tools_criu.gpg > /dev/null
echo "deb $REPO/ /" | sudo tee /etc/apt/sources.list.d/criu.list
packages="$packages criu"
else
echo >&2 "Skipping installation of CRIU, as CONFIG_CHECKPOINT_RESTORE seems missing"
fi
sudo apt update
sudo apt install -y libseccomp-dev criu sshfs
sudo apt install -y $packages
- name: install deps (criu ${{ matrix.criu }})
if: matrix.criu != ''
Expand Down

0 comments on commit e1ad43c

Please sign in to comment.