summaryrefslogtreecommitdiff
path: root/.gitea/workflows/test.yaml
blob: 3641e8432d32b62fd480a982b65b2ff8ca460c2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 toml11
      - 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