Skip to content

Commit 1a26cf3

Browse files
committed
ci: speed up criu-dev install
Employ shallow git clone and parallel build, speeding up build. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent b33b527 commit 1a26cf3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,9 @@ jobs:
125125
sudo apt -qy install \
126126
libcap-dev libnet1-dev libnl-3-dev uuid-dev \
127127
libprotobuf-c-dev libprotobuf-dev protobuf-c-compiler protobuf-compiler
128-
git clone https://github.com/checkpoint-restore/criu.git ~/criu
129-
(cd ~/criu && git checkout ${{ matrix.criu }} && sudo make install-criu)
128+
git clone --depth 1 --branch ${{ matrix.criu }} --single-branch \
129+
https://github.com/checkpoint-restore/criu.git ~/criu
130+
(cd ~/criu && sudo make -j $(nproc) install-criu)
130131
rm -rf ~/criu
131132
132133
- name: install go ${{ matrix.go-version }}

0 commit comments

Comments
 (0)