Skip to content

Commit ceb7a18

Browse files
committed
Add workflow for ci testing
1 parent deacf4d commit ceb7a18

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ "**" ]
8+
9+
jobs:
10+
linux:
11+
runs-on: ubuntu-24.04
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y \
22+
build-essential \
23+
cmake \
24+
ninja-build \
25+
pkg-config \
26+
libevent-dev \
27+
libsqlite3-dev \
28+
zlib1g-dev \
29+
libboost-all-dev \
30+
qt6-base-dev \
31+
qt6-declarative-dev \
32+
libqt6quickcontrols2-dev
33+
34+
- name: Configure (CMake)
35+
run: |
36+
cmake -S . -B build -G Ninja \
37+
-DCMAKE_BUILD_TYPE=Release \
38+
-DBUILD_APP_TESTS=ON
39+
40+
- name: Build
41+
run: cmake --build build --parallel
42+
43+
- name: Run tests
44+
run: ctest --test-dir build --output-on-failure
45+

0 commit comments

Comments
 (0)