summaryrefslogtreecommitdiff
path: root/.gitea/workflows/test.yaml
blob: 15f31e4142db7f636a2b8aa1a447c35ddfdb3d1b (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
27
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 \
            glib-dev bzip2-dev curl-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