Merged revision(s) 22362 from trunk/OpenMPT: #582
This file contains 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
name: RHEL Autotools | |
on: | |
push: | |
branches: [ OpenMPT-1.31 ] | |
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: Update system | |
run: dnf -y upgrade --refresh | |
- name: Setup repositories | |
if: ${{ matrix.version == 'almalinux:8' }} | |
run: dnf -y install 'dnf-command(config-manager)' && dnf -y config-manager --set-enabled powertools && dnf -y install almalinux-release-devel && dnf -y clean all && dnf -y upgrade --refresh | |
- name: Setup repositories | |
if: ${{ matrix.version == 'almalinux:9' }} | |
run: dnf -y install 'dnf-command(config-manager)' && dnf -y config-manager --set-enabled crb && dnf -y install almalinux-release-devel && dnf -y clean all && dnf -y upgrade --refresh | |
- name: Setup repositories | |
if: ${{ matrix.version == 'rockylinux:8' }} | |
run: dnf -y install 'dnf-command(config-manager)' && dnf -y config-manager --set-enabled powertools && dnf -y config-manager --set-enabled devel && dnf -y clean all && dnf -y upgrade --refresh | |
- name: Setup repositories | |
if: ${{ matrix.version == 'rockylinux:9' }} | |
run: dnf -y install 'dnf-command(config-manager)' && dnf -y config-manager --set-enabled crb && dnf -y config-manager --set-enabled devel && dnf -y clean all && dnf -y upgrade --refresh | |
- name: Install dependencies | |
run: dnf -y install subversion perl-XML-XPath git gawk zip unzip xz make binutils gcc gcc-c++ clang pkgconf help2man doxygen autoconf autoconf-archive automake libtool zlib-devel mpg123-devel libogg-devel libvorbis-devel pulseaudio-libs-devel SDL2-devel flac-devel libsndfile-devel libtool-ltdl-devel | |
- name: Enable EPEL | |
run: dnf -y install epel-release | |
- name: Install EPEL dependencies | |
run: dnf -y install ccache portaudio-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 |