Skip to content

Commit

Permalink
gh actions: use crun and update runc version
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hunt <[email protected]>
  • Loading branch information
haircommander committed Oct 1, 2024
1 parent 51c88b4 commit a3dca4d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion hack/github-actions-setup
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -16,6 +17,7 @@ main() {
install_bats
install_critools
install_runc
install_crun
install_cni_plugins
install_testdeps
setup_etc_subid
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit a3dca4d

Please sign in to comment.