Skip to content

Commit

Permalink
CI: also test on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
slivingston committed Nov 13, 2024
1 parent 282f429 commit a529fc7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,27 @@ on:
jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [
ubuntu-22.04,
macos-latest,
]
cc: ['gcc', 'clang']
env:
CC: ${{ matrix.cc }}
steps:
- uses: actions/checkout@v4
- name: Install APT packages
- name: Install packages via Brew if macOS
if: matrix.os == 'macos-latest'
run: |
brew install graphviz
brew install flex
brew install bison
brew install ${{ matrix.cc }}
- name: Install APT packages if Ubuntu
if: matrix.os == 'ubuntu-22.04'
run: |
sudo apt update
sudo apt install \
Expand Down

0 comments on commit a529fc7

Please sign in to comment.