From 7e809fdbbc16805ec332daba3ecb2da15b208c42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Heusipp?= Date: Sun, 28 Apr 2024 18:03:49 +0000 Subject: [PATCH] [Imp] build: CI: GitHub: Fedora: Add matrix build for dependencies. git-svn-id: https://source.openmpt.org/svn/openmpt/trunk/OpenMPT@20680 56274372-70c3-4bfc-bfc3-4c3a0b034d27 --- .github/workflows/Fedora-Makefile.yml | 28 +++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/.github/workflows/Fedora-Makefile.yml b/.github/workflows/Fedora-Makefile.yml index e4f845d535a..f491a93e7a8 100644 --- a/.github/workflows/Fedora-Makefile.yml +++ b/.github/workflows/Fedora-Makefile.yml @@ -6,26 +6,34 @@ on: pull_request: branches: [ master ] -concurrency: - group: ${{ github.ref }}-${{ github.workflow }} - cancel-in-progress: true - jobs: build: + strategy: + fail-fast: false + matrix: + include: + - { deps: sys } + - { deps: local } + - { deps: small } + + concurrency: + group: ${{ github.ref }}-${{ github.workflow }}-${{matrix.deps}} + cancel-in-progress: true + runs-on: ubuntu-latest container: image: fedora:latest steps: - - name: install dependencies + - name: Install dependencies run: dnf -y upgrade --refresh && dnf -y install subversion perl-XML-XPath git mawk zip unzip p7zip xz make binutils gcc gcc-g++ clang pcc pkgconf help2man doxygen autoconf autoconf-archive automake libtool ccache zlib-devel mpg123-devel libogg-devel libvorbis-devel portaudio-devel pulseaudio-libs-devel SDL2-devel flac-devel libsndfile-devel libtool-ltdl-devel - - name: checkout + - name: Checkout uses: actions/checkout@v4 - name: fix git # https://github.com/actions/runner/issues/2033 run: chown -R $(id -u):$(id -g) $(pwd) - - name: make - run: make -j$(nproc) STRICT=1 - - name: make check - run: make -j$(nproc) STRICT=1 check + - name: Build + run: make -j$(nproc) STRICT=1 VERBOSE=1 ${{ (matrix.deps == 'sys') && 'AUTO_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} + - name: Test + run: make -j$(nproc) STRICT=1 VERBOSE=1 ${{ (matrix.deps == 'sys') && 'AUTO_DEPS=1' || (matrix.deps == 'local') && 'LOCAL_ZLIB=1 LOCAL_MPG123=1 LOCAL_OGG=1 LOCAL_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' || 'NO_ZLIB=1 NO_MPG123=1 NO_OGG=1 NO_VORBIS=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} check