From d80c0036eb404dfa66eda15010345c1d45355a13 Mon Sep 17 00:00:00 2001 From: QRWells Date: Tue, 20 Feb 2024 10:52:22 +0800 Subject: [PATCH] ci/cd: add ci for macOS --- .github/workflows/c-cpp.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 8d22c33d..73cb706e 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -6,16 +6,23 @@ jobs: build: runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - os: [ubuntu-latest] + os: [ubuntu-latest, macos-14] compiler: [{ c: gcc-13, cxx: g++-13 }, { c: clang-15, cxx: clang++-15 }] steps: - uses: actions/checkout@v4 - - name: Setup prerequisites + - name: Setup prerequisites for Linux + if: runner.os == 'Linux' run: | sudo apt -qq update sudo apt install -y re2c ruby-full bison flex doxygen zlib1g-dev libomp-15-dev + - name: Setup prerequisites for macOS + if: runner.os == 'macOS' + run: | + brew install re2c bison flex doxygen + - name: Configure Project uses: threeal/cmake-action@v1.3.0 with: