[Mod] build: Makefile: Allow settings from environment variables. #2357
This file contains hidden or 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: macOS Autotools | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - { host: macos-26, compiler: '26.3' } | |
| - { host: macos-26, compiler: '26.2' } | |
| - { host: macos-26, compiler: '26.1' } | |
| - { host: macos-26, compiler: '26.0' } | |
| - { host: macos-15, compiler: '16.4' } | |
| - { host: macos-15, compiler: '16.3' } | |
| - { host: macos-15, compiler: '16.2' } | |
| - { host: macos-15, compiler: '16.1' } | |
| - { host: macos-15, compiler: '16.0' } | |
| - { host: macos-14, compiler: '15.4' } | |
| - { host: macos-14, compiler: '15.3' } | |
| - { host: macos-14, compiler: '15.2' } | |
| - { host: macos-14, compiler: '15.1' } | |
| - { host: macos-14, compiler: '15.0' } | |
| concurrency: | |
| group: ${{github.ref}}-${{github.workflow}}-${{matrix.host}}-${{matrix.compiler}}-autotools | |
| cancel-in-progress: true | |
| runs-on: ${{matrix.host}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: update Homebrew | |
| run: brew update | |
| - name: fixup GitHub Homebrew python breakage | |
| if: ${{ matrix.host == 'macos-13' }} | |
| run: brew unlink python@3.12 && brew unlink python@3.13 && brew link --overwrite python@3.12 && brew link --overwrite python@3.13 | |
| - name: upgrade packages | |
| if: ${{ matrix.host != 'macos-13' }} | |
| run: brew upgrade | |
| - name: install dependencies | |
| run: brew install p7zip help2man doxygen autoconf autoconf-archive automake libtool mpg123 libogg libvorbis portaudio flac libsndfile sdl2 | |
| - name: selecting Xcode version | |
| run: sudo xcode-select --switch /Applications/Xcode_${{matrix.compiler}}.app | |
| - name: setup parallel make | |
| run: echo "MAKEFLAGS=-j$(sysctl -n hw.ncpu)" >> $GITHUB_ENV | |
| - name: build | |
| run: ./build/autotools/autoconfiscate.sh |