From 452a20c05e36a750605bdfa67fbeb6dba03754ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Mon, 19 Aug 2024 18:41:13 +0200 Subject: [PATCH] ci: add tests on Rocky Linux 9 --- .github/workflows/ci.yml | 79 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 74 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6f22d4041..8dcf2e70b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ on: - cron: '22 9 * * 2' env: - WEECHAT_DEPENDENCIES: >- + WEECHAT_UBUNTU_DEPS: >- asciidoctor cmake curl @@ -42,10 +42,35 @@ env: shellcheck tcl8.6-dev zlib1g-dev + WEECHAT_ROCKYLINUX_DEPS: >- + asciidoctor + aspell-devel + cjson-devel + clang + cmake + cpputest-devel + gcc + gettext + glibc-langpack-en + gnutls-devel + guile30-devel + libcurl-devel + libgcrypt-devel + libzstd-devel + lua-devel + ncurses-devel + perl-devel + php-devel + php-embedded + python-devel + ruby-devel + sudo + tcl-devel + zlib-devel jobs: - tests_linux: + tests_ubuntu: strategy: matrix: @@ -70,7 +95,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update -qq - sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }} + sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_UBUNTU_DEPS }} # uninstall php imagick as is causes a crash when loading php plugin (see #2009) sudo apt-get --yes purge php8.1-imagick sudo -H pip3 install --ignore-installed msgcheck @@ -133,6 +158,50 @@ jobs: lcov --list coverage.info bash <(curl -s https://codecov.io/bash) -f coverage.info || echo 'Codecov error' + tests_rockylinux: + + strategy: + matrix: + os: + - ubuntu-22.04 + config: + - { name: "gcc", cc: "gcc", cxx: "g++", buildargs: "" } + - { name: "clang", cc: "clang", cxx: "clang++", buildargs: "" } + + name: "rockylinux-9: ${{ matrix.config.name }}" + runs-on: ${{ matrix.os }} + container: + image: rockylinux:9 + + steps: + + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + dnf install -y epel-release + dnf config-manager --set-enabled crb + dnf install -y ${{ env.WEECHAT_ROCKYLINUX_DEPS }} + + - name: Build and run tests + env: + CC: ${{ matrix.config.cc }} + CXX: ${{ matrix.config.cxx }} + BUILDARGS: ${{ matrix.config.buildargs }} + run: ./tools/build_test.sh + + - name: Run WeeChat + env: + TERM: xterm-256color + run: | + weechat --help + weechat-curses --help + weechat --version + weechat --build-info + weechat --colors + weechat --license + weechat --run-command "/debug dirs;/debug libs" --run-command "/quit" + tests_macos: strategy: @@ -211,7 +280,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update -qq - sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }} + sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_UBUNTU_DEPS }} - name: Test Debian patches run: ./tools/build_debian.sh test-patches @@ -255,7 +324,7 @@ jobs: - name: Install dependencies run: | sudo apt-get update -qq - sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }} + sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_UBUNTU_DEPS }} # uninstall php imagick as is causes a crash when loading php plugin (see #2009) sudo apt-get --yes purge php8.1-imagick sudo -H pip3 install --ignore-installed msgcheck