Add a build action
Some checks failed
Build / build (push) Failing after 12s

This commit is contained in:
2025-08-01 21:18:16 +02:00
parent 96817ee672
commit f1af7750c9
2 changed files with 31 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
name: Build
on:
push:
branches:
- '**'
pull_request:
branches: [master]
jobs:
build:
runs-on: alpine
steps:
- name: Set up environment
shell: ash {0}
run: |
apk -U upgrade
apk add --no-cache git bash cmake build-base ninja
- uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -G Ninja
ninja -C build

View File

@@ -20,6 +20,14 @@ Pass `-DCMAKE_BUILD_TYPE=Debug` or `-DCMAKE_BUILD_TYPE=Release` to
This builds a CLI that can be then found in `./build/bin/katja`.
### Running the tests
To run the tests follow the build instructions first and then do:
```sh
ninja -C build test
```
## Project structure
The library code is in `katja/`. Public headers are under `include/`.