File tree Expand file tree Collapse file tree 4 files changed +18
-21
lines changed
Expand file tree Collapse file tree 4 files changed +18
-21
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,11 @@ jobs:
264264 runc : crun
265265
266266 steps :
267+ - name : Install Go
268+ uses : actions/setup-go@v1
269+ with :
270+ go-version : ' 1.13.10'
271+
267272 - name : Set env
268273 shell : bash
269274 run : |
@@ -279,19 +284,10 @@ jobs:
279284 env :
280285 RUNC_FLAVOR : ${{ matrix.runc }}
281286 run : |
282- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-seccomp
283- sudo PATH=$PATH GOPATH=$GOPATH RUNC_FLAVOR=$RUNC_FLAVOR script/setup/install-runc
284- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-cni
285- sudo PATH=$PATH GOPATH=$GOPATH script/setup/install-critools
286- working-directory : src/github.com/containerd/containerd
287-
288- - name : Install protobuf
289- run : |
290- sudo env PATH=$PATH GOPATH=$GOPATH script/setup/install-protobuf
291- sudo chmod +x /usr/local/bin/protoc
292- sudo chmod og+rx /usr/local/include/google /usr/local/include/google/protobuf /usr/local/include/google/protobuf/compiler
293- sudo chmod -R og+r /usr/local/include/google/protobuf/
294- protoc --version
287+ sudo PATH=$PATH script/setup/install-seccomp
288+ script/setup/install-runc
289+ script/setup/install-cni
290+ script/setup/install-critools
295291 working-directory : src/github.com/containerd/containerd
296292
297293 - name : Install criu
Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ go get -d github.com/containernetworking/plugins/...
2929cd " $GOPATH " /src/github.com/containernetworking/plugins
3030git checkout $CNI_COMMIT
3131FASTBUILD=true ./build.sh
32- mkdir -p $CNI_DIR
33- cp -r ./bin $CNI_DIR
34- mkdir -p $CNI_CONFIG_DIR
35- cat > $CNI_CONFIG_DIR /10-containerd-net.conflist << EOF
32+ sudo mkdir -p $CNI_DIR
33+ sudo cp -r ./bin $CNI_DIR
34+ sudo mkdir -p $CNI_CONFIG_DIR
35+ cat << EOF | sudo tee $CNI_CONFIG_DIR /10-containerd-net.conflist
3636{
3737 "cniVersion": "0.3.1",
3838 "name": "containerd-net",
Original file line number Diff line number Diff line change @@ -26,4 +26,4 @@ go get -d github.com/kubernetes-sigs/cri-tools/...
2626cd " $GOPATH " /src/github.com/kubernetes-sigs/cri-tools
2727git checkout $CRITEST_COMMIT
2828make
29- make install
29+ sudo make install
Original file line number Diff line number Diff line change @@ -26,13 +26,14 @@ function install_runc() {
2626 go get -d github.com/opencontainers/runc
2727 cd " $GOPATH " /src/github.com/opencontainers/runc
2828 git checkout $RUNC_COMMIT
29- make BUILDTAGS=' seccomp apparmor selinux' runc install
29+ make BUILDTAGS=' apparmor seccomp selinux' runc
30+ sudo make install
3031}
3132
3233function install_crun() {
3334 CRUN_VERSION=0.11
34- curl -o /usr/local/sbin/runc -L https://github.com/containers/crun/releases/download/${CRUN_VERSION} /crun-${CRUN_VERSION} -static-$( uname -m)
35- chmod +x /usr/local/sbin/runc
35+ sudo curl -o /usr/local/sbin/runc -L https://github.com/containers/crun/releases/download/${CRUN_VERSION} /crun-${CRUN_VERSION} -static-$( uname -m)
36+ sudo chmod +x /usr/local/sbin/runc
3637}
3738
3839: ${RUNC_FLAVOR=runc}
You can’t perform that action at this time.
0 commit comments