fix MacOS build pipeline #672
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
# This workflow will build and test gbsplay in various configurations on macOS. | |
name: macOS Build | |
on: | |
push: | |
pull_request: | |
types: [opened] | |
schedule: | |
- cron: '23 4 5 * *' | |
jobs: | |
build-macos: | |
name: Build and test on macOS | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
compiler: [gcc, clang] | |
flags: [''] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
brew install sdl2 | |
# gettext is a keg-only install so the headers are missing by default | |
brew unlink gettext && brew link gettext --force --verbose | grep libintl.h | |
- name: Build and test | |
env: | |
CC: ${{ matrix.compiler }} | |
CONFIGURE_FLAGS: ${{ matrix.flags }} --enable-verbosebuild | |
run: | | |
make | |
- name: Check activated plugouts | |
run: | | |
./check_plugouts.sh sdl | |
- name: Check WAV plugout | |
run: | | |
./check_plugout_wav.sh | |
- name: Check build flags | |
run: | | |
./check_buildflags.sh ${{ matrix.flags }} --enable-verbosebuild | |
- name: Dump configure on error | |
if: ${{ failure() }} | |
run: | | |
bash -x -v configure && cat config.err |