chore: add continuous integration

This commit is contained in:
decafcode 2023-11-19 17:08:58 -05:00
parent 59536067b2
commit 7a875500b9
2 changed files with 36 additions and 0 deletions

1
.clang-format Normal file
View File

@ -0,0 +1 @@
Language: Cpp

35
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,35 @@
name: Continuous Integration
on:
- pull_request
jobs:
build:
strategy:
matrix:
os:
- macos-13
- ubuntu-22.04
- windows-2022
name: "Build ${{ matrix.os }}"
runs-on: "${{ matrix.os }}"
steps:
- name: Checkout
uses: actions/checkout@v3.5.2
- name: Setup Python
uses: actions/setup-python@v4.7.1
with:
python-version: "3.12.0"
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@v1.1
with:
version: "1.11.1"
- name: Install Meson
run: python3 -m pip install meson==1.2.1
- name: Configure project
run: meson setup build/
- name: Check formatting
if: ${{ runner.os == 'Linux' }}
run: ninja -C build/ clang-format-check
- name: Build project
run: ninja -C build/