github: Minor formatting on skipped tests #834
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: GPL-2.0-or-later | |
| # Copyright (c) 2021-2024 Petr Vorel <pvorel@suse.cz> | |
| name: "CI: docker based builds" | |
| on: [push, pull_request] | |
| jobs: | |
| job: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| # 32bit build | |
| - container: "debian:stable" | |
| env: | |
| CC: gcc | |
| VARIANT: i386 | |
| BUILD_32: 1 | |
| # cross compilation builds | |
| - container: "debian:testing" | |
| env: | |
| ARCH: arm64 | |
| CC: aarch64-linux-gnu-gcc | |
| VARIANT: cross-compile | |
| - container: "debian:testing" | |
| env: | |
| ARCH: ppc64el | |
| CC: powerpc64le-linux-gnu-gcc | |
| VARIANT: cross-compile | |
| - container: "debian:testing" | |
| env: | |
| ARCH: s390x | |
| CC: s390x-linux-gnu-gcc | |
| VARIANT: cross-compile | |
| # musl (native) | |
| - container: "alpine:latest" | |
| env: | |
| CC: gcc | |
| EXTRA_BUILD_OPTS: "-DBUILD_HTML_MANS=false -DBUILD_MANS=false" | |
| # some non-default options | |
| - container: "debian:stable" | |
| env: | |
| CC: gcc | |
| EXTRA_BUILD_OPTS: "-DUSE_CAP=false -DUSE_IDN=false -DBUILD_ARPING=false -DBUILD_CLOCKDIFF=false -DUSE_GETTEXT=false" | |
| # other builds | |
| - container: "opensuse/leap" | |
| env: | |
| CC: clang | |
| - container: "ubuntu:bionic" | |
| env: | |
| CC: clang | |
| EXTRA_BUILD_OPTS: "-DUSE_GETTEXT=false" | |
| # meson 0.45.1 is too old | |
| # meson error: not using Unicode-compatible locale (ANSI_X3.4-1968) | |
| SKIP_TESTS: true | |
| # meson: error: unrecognized arguments: -C builddir | |
| SKIP_DISC: true | |
| - container: "ubuntu:jammy" | |
| env: | |
| CC: gcc | |
| - container: "fedora:latest" | |
| env: | |
| CC: clang | |
| - container: "quay.io/centos/centos:stream9" | |
| env: | |
| CC: gcc | |
| - container: "rockylinux:9" | |
| env: | |
| CC: gcc | |
| - container: "rockylinux:8" | |
| env: | |
| CC: gcc | |
| - container: "debian:testing" | |
| env: | |
| CC: gcc | |
| EXTRA_BUILD_OPTS: "-DNO_SETCAP_OR_SUID=false" | |
| - container: "debian:stable" | |
| env: | |
| CC: gcc | |
| - container: "debian:oldstable" | |
| env: | |
| CC: clang | |
| # meson 0.56.2 is too old | |
| # meson dist: error: argument --formats: invalid choice: 'xztar,gztar,zip' (choose from 'gztar', 'xztar', 'zip') | |
| SKIP_DISC: true | |
| container: | |
| image: ${{ matrix.container }} | |
| env: ${{ matrix.env }} | |
| options: --security-opt seccomp=unconfined | |
| steps: | |
| - name: Foo | |
| run: | | |
| echo '::notice title={Test skipped}::Tests skipped' | |
| echo '::warning file={name},line={line},endLine={endLine},title={title}::{message}' | |
| echo '::error file={name},line={line},endLine={endLine},title={title}::{message}' | |
| echo '::debug file={name},line={line},endLine={endLine},title={title}::{message}' | |
| - name: Show OS | |
| run: cat /etc/os-release | |
| - name: Git checkout | |
| uses: actions/checkout@v1 | |
| - name: Fix permissions | |
| run: chown -Rv $(id -u):$(id -g) . | |
| - name: Install additional packages | |
| run: | | |
| export INSTALL=${{ matrix.container }} | |
| export DISTRO_VERSION="${INSTALL#*:}" | |
| INSTALL="${INSTALL#quay.io/centos/}" | |
| INSTALL="${INSTALL%%:*}" | |
| INSTALL="${INSTALL%%/*}" | |
| ./ci/$INSTALL.sh | |
| if [ "$VARIANT" ]; then ./ci/$INSTALL.$VARIANT.sh; fi | |
| - name: Check dependencies | |
| run: ./build.sh dependencies | |
| - name: Check info | |
| run: ./build.sh info | |
| - name: Configure | |
| run: ./build.sh configure | |
| - name: Compile | |
| run: ./build.sh build | |
| - name: Show build log | |
| if: always() | |
| run: ./build.sh build-log | |
| - name: Check binaries | |
| run: ./build.sh check-binaries | |
| - name: Dist | |
| run: if [ ! "$SKIP_DISC" ]; then ./build.sh dist; else echo "::warning meson dist skipped"; fi | |
| - name: Install | |
| run: ./build.sh install | |
| - name: Show install log | |
| if: always() | |
| run: ./build.sh install-log | |
| - name: Tests | |
| run: if [ ! "$SKIP_TESTS" ]; then ./build.sh test; else echo "::warning tests skipped"; fi | |
| - name: Show test log | |
| if: always() | |
| run: if [ ! "$SKIP_TESTS" ]; then ./build.sh test-log; else echo "::warning tests skipped"; fi |