Update CI to run on macOS #282
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
jobs: | |
test-linux: | |
name: Test ${{ matrix.name }} ${{ matrix.CC }} | |
runs-on: ${{ matrix.runner }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- name: Linux | |
runner: ubuntu-24.04 | |
CC: gcc-14 | |
CXX: g++-14 | |
- name: macOS | |
runner: macos-14 | |
CC: gcc-14 | |
CXX: g++-14 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install APT dependencies | |
if: matrix.name == 'Linux' | |
run: sudo apt-get install ninja-build libc++-18-dev libc++abi-18-dev | |
- name: Install Homebrew dependencies | |
if: matrix.name == 'macOS' | |
run: brew install ninja gcc@14 | |
- name: Run test script | |
timeout-minutes: 12 | |
run: ./test-all.sh | |
env: | |
CC: ${{ matrix.CC }} | |
CXX: ${{ matrix.CXX }} | |
CXXFLAGS: ${{ matrix.CXXFLAGS }} | |
test-windows: | |
name: Test Windows | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Run test script | |
timeout-minutes: 12 | |
run: ./test-all.ps1 |