Use PKG_CHECK_MODULES to find the ao lib if possible. #341
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: Basic libao configuration for macOS with BREW -- classic only, because macOS can't host NQPTP. | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "development", "danger" ] | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Dependencies | |
run: | | |
brew install automake | |
brew install openssl | |
brew install popt | |
brew install libconfig | |
brew install libao | |
- name: Configure | |
run: | | |
export CPPFLAGS="-I/usr/local/opt/openssl@3/include" | |
export LDFLAGS="-L/usr/local/opt/openssl@3/lib" | |
export PATH="/usr/local/opt/openssl/bin:${PATH}" | |
export PKG_CONFIG_PATH="/usr/local/opt/openssl@3/lib/pkgconfig" | |
autoreconf -fi | |
./configure --with-os=darwin --with-ao --with-stdout --with-dns_sd --with-ssl=openssl | |
- name: Make | |
run: | | |
make |