From 5a8ba5771fa5058cc38f12cf581b96e7166c35c9 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 3 Jan 2022 19:04:07 -0800 Subject: [PATCH] add macos build action --- .github/workflows/cmake.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e86359f..7d71962 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -11,14 +11,23 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest] steps: - uses: actions/checkout@v2 - - name: Install apt libraries + - name: Install libraries (Linux) + if: ${{ matrix.os == 'ubuntu-latest' }} run: sudo apt-get install -y libopenal-dev libsamplerate-dev + - name: Install libraries (macOS) + if: ${{ matrix.os == 'macos-latest' }} + run: brew install libsamplerate + - name: Install phosg run: | git clone https://github.com/fuzziqersoftware/phosg.git