name: CI CentOS 8 on: push: branches: - '*' pull_request: branches: [ master ] jobs: build: runs-on: ubuntu-latest container: centos:8 steps: - name: Enable RPMFusion, EPEL and PowerTools run: yum -y install "dnf-command(config-manager)" https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && yum config-manager --set-enabled powertools - name: Install git run: yum -y install git - uses: actions/checkout@v2 with: submodules: recursive - name: Install dependencies run: yum -y update && yum -y install make cmake gcc-c++ catch-devel mariadb-devel ffmpeg-devel libcurl-devel vlc-devel libvncserver-devel libjpeg-turbo-devel "perl(Date::Manip)" "perl(DBD::mysql)" "perl(ExtUtils::MakeMaker)" "perl(Sys::Mmap)" "perl(Sys::Syslog)" "perl(LWP::UserAgent)" polkit-devel - name: Prepare run: mkdir build - name: Configure run: cd build && cmake --version && cmake .. -DBUILD_MAN=0 -DBUILD_TEST_SUITE=1 -DENABLE_WERROR=1 - name: Build run: cd build && make -j3 | grep --line-buffered -Ev '^(cp lib\/|Installing.+\.pm)' && (exit ${PIPESTATUS[0]}) - name: Run test run: cd build/tests && ./tests "~[notCI]"