File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments