From a3dca4dc9f3c336c9f7748f10dc331d2ae6cd5b4 Mon Sep 17 00:00:00 2001 From: Peter Hunt Date: Tue, 1 Oct 2024 14:35:33 -0400 Subject: [PATCH] gh actions: use crun and update runc version Signed-off-by: Peter Hunt --- hack/github-actions-setup | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/hack/github-actions-setup b/hack/github-actions-setup index ad371667..b5bb7f2d 100755 --- a/hack/github-actions-setup +++ b/hack/github-actions-setup @@ -3,7 +3,8 @@ set -euo pipefail declare -A VERSIONS=( ["cni-plugins"]=v1.3.0 - ["runc"]=v1.1.7 + ["runc"]=v1.1.14 + ["crun"]=1.17 ["bats"]=v1.9.0 ) @@ -16,6 +17,7 @@ main() { install_bats install_critools install_runc + install_crun install_cni_plugins install_testdeps setup_etc_subid @@ -118,6 +120,16 @@ install_runc() { runc --version } +install_crun() { + URL=https://github.com/containers/crun/releases/download/"${VERSIONS["crun"]}"/crun-"${VERSIONS["crun"]}"-linux-amd64 + + BINARY=/usr/bin/crun + sudo wget -O "$BINARY" "$URL" + sudo chmod +x "$BINARY" + + crun --version +} + install_testdeps() { CLONE_PATH=$(go env GOPATH)/src/github.com/cri-o mkdir -p "$CLONE_PATH"