|
| 1 | + |
| 2 | +name: macOS Makefile |
| 3 | + |
| 4 | +on: |
| 5 | + push: |
| 6 | + branches: [ OpenMPT-1.29 ] |
| 7 | + |
| 8 | +jobs: |
| 9 | + build: |
| 10 | + strategy: |
| 11 | + fail-fast: false |
| 12 | + matrix: |
| 13 | + include: |
| 14 | + - { host: macos-26, compiler: '26.1', arch: '' , target: '' , deps: sys , check: true , ancient: false } |
| 15 | + - { host: macos-26, compiler: '26.1', arch: arm64 , target: '' , deps: small, check: true , ancient: false } |
| 16 | + - { host: macos-26, compiler: '26.1', arch: x86_64, target: '' , deps: small, check: true , ancient: false } |
| 17 | + - { host: macos-26, compiler: '26.0', arch: '' , target: '' , deps: sys , check: true , ancient: false } |
| 18 | + - { host: macos-26, compiler: '26.0', arch: arm64 , target: '' , deps: small, check: true , ancient: false } |
| 19 | + - { host: macos-26, compiler: '26.0', arch: x86_64, target: '' , deps: small, check: true , ancient: false } |
| 20 | + - { host: macos-15, compiler: '16.4', arch: '' , target: '' , deps: sys , check: true , ancient: false } |
| 21 | + - { host: macos-15, compiler: '16.4', arch: arm64 , target: '' , deps: small, check: true , ancient: false } |
| 22 | + - { host: macos-15, compiler: '16.4', arch: x86_64, target: '' , deps: small, check: true , ancient: false } |
| 23 | + - { host: macos-15, compiler: '16.3', arch: '' , target: '' , deps: sys , check: true , ancient: false } |
| 24 | + - { host: macos-15, compiler: '16.3', arch: arm64 , target: '' , deps: small, check: true , ancient: false } |
| 25 | + - { host: macos-15, compiler: '16.3', arch: x86_64, target: '' , deps: small, check: true , ancient: false } |
| 26 | + - { host: macos-15, compiler: '16.2', arch: '' , target: '' , deps: sys , check: true , ancient: false } |
| 27 | + - { host: macos-15, compiler: '16.2', arch: arm64 , target: '' , deps: small, check: true , ancient: false } |
| 28 | + - { host: macos-15, compiler: '16.2', arch: x86_64, target: '' , deps: small, check: true , ancient: false } |
| 29 | + - { host: macos-15, compiler: '16.1', arch: '' , target: '' , deps: sys , check: true , ancient: false } |
| 30 | + - { host: macos-15, compiler: '16.1', arch: arm64 , target: '' , deps: small, check: true , ancient: false } |
| 31 | + - { host: macos-15, compiler: '16.1', arch: x86_64, target: '' , deps: small, check: true , ancient: false } |
| 32 | + - { host: macos-15, compiler: '16.0', arch: '' , target: '' , deps: sys , check: true , ancient: false } |
| 33 | + - { host: macos-15, compiler: '16.0', arch: arm64 , target: '' , deps: small, check: true , ancient: false } |
| 34 | + - { host: macos-15, compiler: '16.0', arch: x86_64, target: '' , deps: small, check: true , ancient: false } |
| 35 | + - { host: macos-14, compiler: '15.4', arch: '' , target: '' , deps: sys , check: true , ancient: false } |
| 36 | + - { host: macos-14, compiler: '15.4', arch: arm64 , target: '' , deps: small, check: true , ancient: false } |
| 37 | + - { host: macos-14, compiler: '15.4', arch: x86_64, target: '' , deps: small, check: true , ancient: false } |
| 38 | + - { host: macos-13, compiler: '14.2', arch: x86_64, target: '10.13', deps: small, check: true , ancient: false } |
| 39 | + - { host: macos-13, compiler: '14.1', arch: x86_64, target: '10.13', deps: small, check: true , ancient: false } |
| 40 | + concurrency: |
| 41 | + group: ${{github.ref}}-${{github.workflow}}-${{matrix.host}}-${{matrix.compiler}}-${{matrix.arch}}-${{matrix.target}}-${{matrix.deps}} |
| 42 | + cancel-in-progress: true |
| 43 | + runs-on: ${{matrix.host}} |
| 44 | + steps: |
| 45 | + - uses: actions/checkout@v4 |
| 46 | + - name: update Homebrew |
| 47 | + run: brew update |
| 48 | + - name: fixup GitHub Homebrew python breakage |
| 49 | + if: ${{ matrix.host == 'macos-13' }} |
| 50 | + run: brew unlink python@3.12 && brew unlink python@3.13 && brew link --overwrite python@3.12 && brew link --overwrite python@3.13 |
| 51 | + - name: upgrade packages |
| 52 | + if: ${{ matrix.host != 'macos-13' }} |
| 53 | + run: brew upgrade |
| 54 | + - name: install dependencies |
| 55 | + run: brew install p7zip help2man doxygen autoconf autoconf-archive automake libtool mpg123 libogg libvorbis portaudio flac libsndfile sdl2 |
| 56 | + - name: selecting Xcode version |
| 57 | + run: sudo xcode-select --switch /Applications/Xcode_${{matrix.compiler}}.app |
| 58 | + - name: setup parallel make |
| 59 | + run: echo "MAKEFLAGS=-j$(sysctl -n hw.ncpu)" >> $GITHUB_ENV |
| 60 | + - name: make |
| 61 | + run: make ${{ matrix.ancient == true && 'ANCIENT=1' || '' }} ARCH=${{matrix.arch}} MACOSX_VERSION_MIN=${{matrix.target}} STRICT=1 ${{ (matrix.deps == 'sys') && 'FORCE_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' }} |
| 62 | + - name: make check |
| 63 | + if: ${{ matrix.check }} |
| 64 | + run: make ${{ matrix.ancient == true && 'ANCIENT=1' || '' }} ARCH=${{matrix.arch}} MACOSX_VERSION_MIN=${{matrix.target}} STRICT=1 ${{ (matrix.deps == 'sys') && 'FORCE_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 |
0 commit comments