-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (46 loc) · 1.6 KB
/
Copy pathci.yml
File metadata and controls
53 lines (46 loc) · 1.6 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Build & Sanity
on:
pull_request:
branches: [master]
paths-ignore:
- "**.md"
- "docs/**"
- "openwiki/**"
- LICENSE
jobs:
format:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install clang-format
run: sudo apt-get install -y -qq clang-format-18
- name: Check formatting
run: |
find src app core common tests test_engine \
signal_generator amplifier spectrum_analyzer equalizer \
node_graph splitter mixer adc coax pfb_channelizer iq_plot icon_registry \
ideal_filter attenuator combiner touchstone logging \
-name '*.cpp' -o -name '*.h' | \
xargs clang-format-18 --dry-run --Werror
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install Linux dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y -qq ninja-build cmake pkg-config xvfb \
libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libxext-dev libgl1-mesa-dev
- name: Configure
run: >-
cmake -B build -G Ninja
-DCMAKE_CXX_COMPILER=g++-14
-DCMAKE_C_COMPILER=gcc-14
-DCMAKE_BUILD_TYPE=Debug
-DGLFW_BUILD_WAYLAND=OFF
- name: Build
run: cmake --build build
# Run the full suite on every PR (not just release tags). Mirrors the
# release.yml strict-build invocation; xvfb-run gives test_ui a display.
- name: Test
run: xvfb-run --auto-servernum ctest --test-dir build --output-on-failure -E "Benchmark"