summaryrefslogtreecommitdiff
path: root/.gitea/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.gitea/workflows')
-rw-r--r--.gitea/workflows/test.yaml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml
new file mode 100644
index 0000000..f4cc879
--- /dev/null
+++ b/.gitea/workflows/test.yaml
@@ -0,0 +1,26 @@
+name: Test
+
+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-is-really-ninja boost-dev
+ - uses: actions/checkout@v4
+ - name: Build
+ run: |
+ # Building the TUI fails with an internal compiler error with GCC 14.2.
+ cmake -B build -G Ninja -DKATJA_BUILD_TUI=Off
+ ninja -C build
+ - name: Run tests
+ run: ninja -C build test