Skip to content

Commit

Permalink
tests: build on CentOS 10 without yajl
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed May 7, 2024
1 parent 52c3ab3 commit 45948ba
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ jobs:
- test: alpine-build
- test: centos8-build
- test: centos9-build
- test: centos10-build
- test: clang-format
- test: clang-check
- test: checkpoint-restore
Expand Down Expand Up @@ -150,6 +151,10 @@ jobs:
sudo docker build -t crun-centos9-build tests/centos9-build
sudo docker run --cgroupns=host --privileged --rm -v /sys/fs/cgroup:/sys/fs/cgroup:rw,rslave -v ${PWD}:/crun crun-centos9-build
;;
centos10-build)
sudo docker build -t crun-centos10-build tests/centos10-build
sudo docker run --cgroupns=host --privileged --rm -v /sys/fs/cgroup:/sys/fs/cgroup:rw,rslave -v ${PWD}:/crun crun-centos10-build
;;
clang-format)
sudo docker build -t crun-clang-format tests/clang-format
sudo docker run --rm -w /crun -v ${PWD}:/crun crun-clang-format
Expand Down
9 changes: 9 additions & 0 deletions tests/centos10-build/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM quay.io/centos/centos:stream10-development

RUN yum --enablerepo='appstream' --enablerepo='baseos' --enablerepo='crb' install -y make \
automake autoconf gettext criu-devel libtool gcc libcap-devel systemd-devel \
libseccomp-devel python3 libtool git protobuf-c protobuf-c-devel

COPY run-tests.sh /usr/local/bin

ENTRYPOINT /usr/local/bin/run-tests.sh
16 changes: 16 additions & 0 deletions tests/centos10-build/run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

set -e
cd /crun

git config --global --add safe.directory /crun

git clean -fdx
./autogen.sh
./configure --enable-embedded-yajl CFLAGS='-Wall -Wextra -Werror'
make -j "$(nproc)"

git clean -fdx
./autogen.sh
./configure --enable-embedded-yajl CFLAGS='-Wall -Wextra -Werror' --disable-systemd
make -j "$(nproc)"

0 comments on commit 45948ba

Please sign in to comment.