Skip to content

Commit

Permalink
scripts: Always download CH binary
Browse files Browse the repository at this point in the history
The aarch64 builds are not run in a clean environment so always download
a new version of CH otherwise updates to the version will not be
reflected in the version used by the CI.

Signed-off-by: Rob Bradford <[email protected]>
  • Loading branch information
rbradford committed Nov 24, 2023
1 parent afa129c commit ea25de8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/fetch_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ fetch_ch() {
[ "$CH_ARCH" = "x86_64" ] && CH_NAME="cloud-hypervisor"
CH_URL="$CH_URL_BASE/$CH_NAME"

if [ ! -f "$CH_PATH" ]; then
wget --quiet $CH_URL -O $CH_PATH
chmod +x $CH_PATH
sudo setcap cap_net_admin+ep $CH_PATH
fi
wget --quiet $CH_URL -O $CH_PATH
chmod +x $CH_PATH
sudo setcap cap_net_admin+ep $CH_PATH
}

fetch_image() {
Expand Down

0 comments on commit ea25de8

Please sign in to comment.