Skip to content

Commit 8e6871a

Browse files
authored
Merge pull request opencontainers#3116 from kolyshkin/ci-add-criu-dev
ci/gha: add latest criu-dev test run
2 parents 9835e9c + 120f740 commit 8e6871a

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,43 @@ jobs:
2020
go-version: [1.15.x, 1.16.x, 1.17.x]
2121
rootless: ["rootless", ""]
2222
race: ["-race", ""]
23+
criu: [""]
24+
include:
25+
# Also test against latest criu-dev
26+
- go-version: 1.16.x
27+
rootless: ""
28+
race: ""
29+
criu: "criu-dev"
2330

2431
steps:
2532

2633
- name: checkout
2734
uses: actions/checkout@v2
2835

36+
- name: Dump matrix context
37+
env:
38+
MATRIX_CONTEXT: ${{ toJSON(matrix) }}
39+
run: echo "$MATRIX_CONTEXT"
40+
2941
- name: install deps
42+
if: matrix.criu == ''
3043
run: |
3144
# criu repo
3245
sudo add-apt-repository -y ppa:criu/ppa
3346
# apt-add-repository runs apt update so we don't have to
3447
sudo apt -q install libseccomp-dev criu
3548
49+
- name: install deps (criu ${{ matrix.criu }})
50+
if: matrix.criu != ''
51+
run: |
52+
sudo apt -q update
53+
sudo apt -q install libseccomp-dev \
54+
libcap-dev libnet1-dev libnl-3-dev \
55+
libprotobuf-c-dev libprotobuf-dev protobuf-c-compiler protobuf-compiler
56+
git clone https://github.com/checkpoint-restore/criu.git ~/criu
57+
(cd ~/criu && git checkout ${{ matrix.criu }} && sudo make install-criu)
58+
rm -rf ~/criu
59+
3660
- name: install go ${{ matrix.go-version }}
3761
uses: actions/setup-go@v2
3862
with:

0 commit comments

Comments
 (0)