Skip to content

Update CI to run on macOS #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 16 additions & 26 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,33 @@ on:
pull_request:
jobs:
test-linux:
name: Test Linux ${{ matrix.CC }}
runs-on: ubuntu-24.04
name: Test ${{ matrix.name }} ${{ matrix.CC }}
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
# Clang 18 is broken for some reason
# - CC: clang-18
# CXX: clang++-18
# CXXFLAGS: -stdlib=libc++
- CC: gcc-14
- 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 build dependencies
- 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
Expand All @@ -45,21 +52,4 @@ jobs:

- name: Run test script
timeout-minutes: 12
run: ./test-all.ps1
test-macos:
name: Test macOS
runs-on: macos-14
env:
CC: /opt/homebrew/opt/llvm@18/bin/clang
CXX: /opt/homebrew/opt/llvm@18/bin/clang++
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install build dependencies
run: brew install ninja llvm@18

- name: Run test script
timeout-minutes: 12
run: ./test-all.sh
run: ./test-all.ps1
Loading