From e9a3609d4402709e0fb855717ac7fa2df2ef2802 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Tue, 11 Jul 2023 21:02:50 +0100 Subject: [PATCH] Update c-cpp.yml to add macos-latest build runner --- .github/workflows/c-cpp.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 9013aa8..2980481 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -13,6 +13,7 @@ jobs: matrix: os: - ubuntu-latest + - macos-latest steps: - name: Install dependencies (Ubuntu) if: runner.os == 'Linux' @@ -21,6 +22,13 @@ jobs: # remove libunwind-*-dev from the runner to avoid conflicts with a dependency of libgstreamer1.0-dev sudo apt-get remove -y libunwind-14-dev libunwind-13-dev sudo apt-get install -y curl libcurl4-openssl-dev cmake gstreamer1.0-plugins-base libgstreamer1.0-dev python3-pip python3-setuptools + - name: Install dependencies (macOS) + if: runner.os == 'macOS' + run: | + brew update + # install python 3.11 explicitly to avoid it failing to overwrite the pre-installed python when it's pulled in as a dependency + brew install --overwrite python@3.11 + brew install --overwrite gstreamer - uses: actions/checkout@v3 - run: pip3 install meson ninja - run: 'git clone --recurse-submodules --depth 1 https://github.com/aws/aws-sdk-cpp.git -b 1.10.30'