From b78875e2265339b58c7a67cc83e6db2988aa0d74 Mon Sep 17 00:00:00 2001 From: Anshul Gupta Date: Thu, 12 Jun 2025 01:48:43 -0700 Subject: Add macos runner to CI --- .github/workflows/cmake.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 5a6831d..c20bf89 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -21,9 +21,12 @@ jobs: # # To add more build types (Release, Debug, RelWithDebInfo, etc.) customize the build_type list. matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] build_type: [Debug] c_compiler: [gcc, clang] + exclude: + - os: macos-latest + c_compiler: gcc steps: - uses: actions/checkout@v4 @@ -36,6 +39,7 @@ jobs: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" - name: Install deps + if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install -y \ @@ -43,6 +47,14 @@ jobs: libcmocka-dev \ libcjson-dev + - name: Install deps + if: matrix.os == 'macos-latest' + run: | + brew install cmake \ + curl \ + cmocka \ + cjson + - name: Configure CMake # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type -- cgit v1.2.3