Compare commits

..

2 Commits

Author SHA1 Message Date
portersky 0eb646e0b4 ci: add GitHub Actions workflow for macOS and Windows
CI / macOS (push) Has been cancelled
CI / Windows / Clang (push) Has been cancelled
Runs tests and coverage on macOS (AppleClang) and Windows with
Clang. Coverage HTML reports are uploaded as artifacts.
2026-05-10 01:30:56 +02:00
portersky 2ed2b60f43 docs: add macOS to platform support list 2026-05-10 01:21:39 +02:00
2 changed files with 61 additions and 1 deletions
+60
View File
@@ -0,0 +1,60 @@
name: CI
on:
push:
branches: [trunk]
pull_request:
branches: [trunk]
jobs:
macos:
name: macOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Ninja
run: brew install ninja
- name: Install gcovr
run: pip install gcovr
- name: Configure with coverage
run: cmake -S . -B build-cov -G Ninja -DENABLE_COVERAGE=ON
- name: Build and generate coverage
run: ninja -C build-cov coverage
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-macos
path: build-cov/coverage/
windows-clang:
name: Windows / Clang
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: ilammy/msvc-dev-cmd@v1
- name: Install gcovr
run: pip install gcovr
- name: Configure with coverage
shell: bash
run: |
cmake -S . -B build-cov -G Ninja \
-DENABLE_COVERAGE=ON \
-DCMAKE_C_COMPILER="C:/Program Files/LLVM/bin/clang.exe" \
-DCMAKE_CXX_COMPILER="C:/Program Files/LLVM/bin/clang++.exe"
- name: Build and generate coverage
run: ninja -C build-cov coverage
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-windows-clang
path: build-cov/coverage/
+1 -1
View File
@@ -166,5 +166,5 @@ deps/
## Platform Support ## Platform Support
The project supports Windows, Linux, Emscripten, and Android via The project supports Windows, Linux, macOS, Emscripten, and Android via
`Platform.cmake` and `Flags.cmake` in `deps/`. `Platform.cmake` and `Flags.cmake` in `deps/`.