Skip to content

Commit

Permalink
ci/cd: add ci for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
QRWells committed Feb 20, 2024
1 parent 85378e6 commit d80c003
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d80c003

Please sign in to comment.