feat: initial commit

This commit is contained in:
Barrett Ruth 2025-08-30 12:50:04 -05:00
commit 5ba454f561
12 changed files with 630 additions and 0 deletions

30
.github/workflows/ci.yaml vendored Normal file
View file

@ -0,0 +1,30 @@
name: ci
on:
push:
pull_request:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update && sudo apt-get install -y clang-format
- name: Check clang-format
run: |
set -e
FILES=$(git ls-files | grep -E '\.(cc|hh|hpp|cpp|cxx)$' || true)
if [ -z "$FILES" ]; then exit 0; fi
clang-format --version
for f in $FILES; do
clang-format --dry-run -Werror "$f"
done
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install compiler
run: sudo apt-get update && sudo apt-get install -y g++
- name: Debug tests (asserts + sanitizers)
run: make test MODE=debug