Author: manx
Date: Sun Apr 28 20:03:49 2024
New Revision: 20680
URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=20680
Log:
[Imp] build: CI: GitHub: Fedora: Add matrix build for dependencies.
Modified:
trunk/OpenMPT/.github/workflows/Fedora-Makefile.yml
Modified: trunk/OpenMPT/.github/workflows/Fedora-Makefile.yml
==============================================================================
--- trunk/OpenMPT/.github/workflows/Fedora-Makefile.yml Sun Apr 28 19:29:25 2024 (r20679)
+++ trunk/OpenMPT/.github/workflows/Fedora-Makefile.yml Sun Apr 28 20:03:49 2024 (r20680)
@@ -6,26 +6,34 @@
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
|