-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (68 loc) · 2.12 KB
/
Copy pathci-linux.yml
File metadata and controls
78 lines (68 loc) · 2.12 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: CI Linux
on:
push:
branches: [ main, master, dev ]
pull_request:
branches: [ main, master, dev ]
defaults:
run:
shell: bash
env:
CMAKE_BUILD_TYPE: Release
# Hosted Xvfb uses Mesa's CPU renderer. Bound its worker count to the job
# memory limit and use its GL 3.3 rasterizer without selecting a QRhi API.
GALLIUM_DRIVER: softpipe
LP_NUM_THREADS: "1"
LINUX_SYSTEM_DEPS: >-
libgl-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev
libxi-dev libxext-dev libwayland-dev libxkbcommon-dev libvulkan-dev
xvfb xauth
jobs:
build-rhi:
name: ${{ matrix.name }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- name: QRhi (Linux)
text: OFF
benchmark: OFF
examples: OFF
- name: QRhi+Text (Linux)
text: ON
benchmark: ON
examples: ON
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y ${LINUX_SYSTEM_DEPS}
- name: Install Qt
uses: jurplel/install-qt-action@v4.3.1
with:
version: '6.10.1'
arch: 'linux_gcc_64'
archives: 'icu qtbase qtdeclarative'
modules: 'qtshadertools'
cache: 'true'
- name: Configure CMake
run: |
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-DVNM_PLOT_ENABLE_TEXT=${{ matrix.text }} \
-DVNM_PLOT_BUILD_TESTS=ON \
-DVNM_PLOT_BUILD_BENCHMARK=${{ matrix.benchmark }} \
-DVNM_PLOT_BUILD_EXAMPLES=${{ matrix.examples }} \
-DVNM_PLOT_BUILD_FUNCTION_PLOTTER=OFF
- name: Build
run: cmake --build build --config ${CMAKE_BUILD_TYPE}
- name: Run tests
working-directory: build
run: xvfb-run -a ctest --output-on-failure
- name: Build summary
run: |
echo "=== ${{ matrix.name }} completed ==="
ls -la build/*.a 2>/dev/null || echo "Static libraries in build directory"