Skip to content

Commit 68b27c4

Browse files
committed
gh actions: use crun and update runc version
Signed-off-by: Peter Hunt <[email protected]>
1 parent b1e8ea3 commit 68b27c4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

hack/github-actions-setup

+13-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ set -euo pipefail
33

44
declare -A VERSIONS=(
55
["cni-plugins"]=v1.3.0
6-
["runc"]=v1.1.7
6+
["runc"]=v1.1.14
7+
["crun"]=1.17
78
["bats"]=v1.9.0
89
)
910

@@ -16,6 +17,7 @@ main() {
1617
install_bats
1718
install_critools
1819
install_runc
20+
install_crun
1921
install_cni_plugins
2022
install_testdeps
2123
setup_etc_subid
@@ -118,6 +120,16 @@ install_runc() {
118120
runc --version
119121
}
120122

123+
install_crun() {
124+
URL=https://github.com/containers/crun/releases/download/"${VERSIONS["crun"]}"/crun-"${VERSIONS["crun"]}"-linux-amd64
125+
126+
BINARY=/usr/bin/crun
127+
sudo wget -O "$BINARY" "$URL"
128+
sudo chmod +x "$BINARY"
129+
130+
crun --version
131+
}
132+
121133
install_testdeps() {
122134
CLONE_PATH=$(go env GOPATH)/src/github.com/cri-o
123135
mkdir -p "$CLONE_PATH"

0 commit comments

Comments
 (0)