From: <sv...@op...> - 2024-08-30 07:38:28
|
Author: manx Date: Fri Aug 30 09:38:16 2024 New Revision: 21539 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21539 Log: [New] build: CI: GitHub: Add RHEL8 and RHEL9. Added: trunk/OpenMPT/.github/workflows/RHEL-Autotools.yml trunk/OpenMPT/.github/workflows/RHEL-Makefile.yml Added: trunk/OpenMPT/.github/workflows/RHEL-Autotools.yml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/OpenMPT/.github/workflows/RHEL-Autotools.yml Fri Aug 30 09:38:16 2024 (r21539) @@ -0,0 +1,38 @@ +name: RHEL Autotools + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + strategy: + fail-fast: false + matrix: + include: + - { version: 'almalinux:8' } + - { version: 'almalinux:9' } + - { version: 'rockylinux:8' } + - { version: 'rockylinux:9' } + + concurrency: + group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-autotools + cancel-in-progress: true + + runs-on: ubuntu-latest + container: + image: ${{matrix.version}} + + steps: + - 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 + uses: actions/checkout@v4 + - name: fix git + # https://github.com/actions/runner/issues/2033 + run: chown -R $(id -u):$(id -g) $(pwd) + - name: Build + run: export MAKEFLAGS=-j$(nproc); ./build/autotools/autoconfiscate.sh Added: trunk/OpenMPT/.github/workflows/RHEL-Makefile.yml ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ trunk/OpenMPT/.github/workflows/RHEL-Makefile.yml Fri Aug 30 09:38:16 2024 (r21539) @@ -0,0 +1,48 @@ +name: RHEL Makefile + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + strategy: + fail-fast: false + matrix: + include: + - { version: 'almalinux:8' , deps: sys } + - { version: 'almalinux:8' , deps: local } + - { version: 'almalinux:8' , deps: small } + - { version: 'almalinux:9' , deps: sys } + - { version: 'almalinux:9' , deps: local } + - { version: 'almalinux:9' , deps: small } + - { version: 'rockylinux:8', deps: sys } + - { version: 'rockylinux:8', deps: local } + - { version: 'rockylinux:8', deps: small } + - { version: 'rockylinux:9', deps: sys } + - { version: 'rockylinux:9', deps: local } + - { version: 'rockylinux:9', deps: small } + + concurrency: + group: ${{github.ref}}-${{github.workflow}}-${{matrix.version}}-${{matrix.deps}} + cancel-in-progress: true + + runs-on: ubuntu-latest + container: + image: ${{matrix.version}} + + steps: + - 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 + uses: actions/checkout@v4 + - name: fix git + # https://github.com/actions/runner/issues/2033 + run: chown -R $(id -u):$(id -g) $(pwd) + - name: Build + run: make -j$(nproc) 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_VORBISFILE=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) 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_VORBISFILE=1 NO_PORTAUDIO=1 NO_PORTAUDIOCPP=1 NO_PULSEAUDIO=1 NO_SDL2=1 NO_FLAC=1 NO_SNDFILE=1' }} check |