This commit is contained in:
23
.gitea/workflows/build.yaml
Normal file
23
.gitea/workflows/build.yaml
Normal 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-build
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
cmake -B build -G Ninja
|
||||||
|
ninja -C build
|
@@ -2,7 +2,7 @@
|
|||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 4.0)
|
cmake_minimum_required(VERSION 3.30)
|
||||||
project(Katja)
|
project(Katja)
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
|
@@ -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`.
|
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
|
## Project structure
|
||||||
|
|
||||||
The library code is in `katja/`. Public headers are under `include/`.
|
The library code is in `katja/`. Public headers are under `include/`.
|
||||||
|
Reference in New Issue
Block a user