From 6722cc7fd6c98f440e899b9c98bb6e1fb8b055d2 Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Sun, 21 Sep 2025 19:39:11 -0400 Subject: [PATCH] Create portaudio-mac.yml --- .github/workflows/portaudio-mac.yml | 49 +++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/portaudio-mac.yml diff --git a/.github/workflows/portaudio-mac.yml b/.github/workflows/portaudio-mac.yml new file mode 100644 index 0000000..65a1ee4 --- /dev/null +++ b/.github/workflows/portaudio-mac.yml @@ -0,0 +1,49 @@ +name: Build PortAudio + +on: + push: + branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +jobs: + build-portaudio: + runs-on: macos-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install Xcode command line tools + run: xcode-select --install || true + + - name: Install Homebrew dependencies + run: | + brew update + brew install cmake + + - name: Download PortAudio + run: | + wget http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz + tar -xzf pa_stable_v190700_20210406.tgz + + - name: Build and install PortAudio + run: | + cd portaudio + ./configure --enable-shared --enable-static CFLAGS='-fPIC' + make clean && make + sudo make install + + - name: Verify installation + run: | + ls -la /usr/local/lib/libportaudio* + ls -la portaudio/lib/.libs/libportaudio.a + pkg-config --modversion portaudio-2.0 || echo "pkg-config not found, but libraries should be installed" + + - name: Upload PortAudio static library + uses: actions/upload-artifact@v4 + with: + name: libportaudio-static + path: portaudio/lib/.libs/libportaudio.a + retention-days: 30