X Tutup
Skip to content

Commit 74ceb35

Browse files
committed
Small fixes to our Actions CI workflow
Integration tests were running with latest Go release rather than the version used everywhere else. Also, we don't need to install protoc from tarball and also apt-get the package for Ubuntu when used as a dependency for criu build. Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
1 parent 9441507 commit 74ceb35

File tree

4 files changed

+18
-21
lines changed

4 files changed

+18
-21
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff 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

script/setup/install-cni

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ go get -d github.com/containernetworking/plugins/...
2929
cd "$GOPATH"/src/github.com/containernetworking/plugins
3030
git checkout $CNI_COMMIT
3131
FASTBUILD=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",

script/setup/install-critools

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ go get -d github.com/kubernetes-sigs/cri-tools/...
2626
cd "$GOPATH"/src/github.com/kubernetes-sigs/cri-tools
2727
git checkout $CRITEST_COMMIT
2828
make
29-
make install
29+
sudo make install

script/setup/install-runc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

3233
function 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}

0 commit comments

Comments
 (0)
X Tutup