-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (51 loc) · 2.05 KB
/
main-qt6.yml
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
name: CI-qt6
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, unlabeled]
workflow_dispatch:
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macOS-latest, ubuntu-latest]
version: ['6.6.3']
build_type: ['Release']
steps:
- uses: actions/checkout@v4
- uses: lukka/get-cmake@latest
- name: Cache Qt
id: cache-qt
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/Qt-${{ runner.os }}-${{ matrix.version }}
key: ${{ runner.os }}-QtCache-${{ matrix.version }}
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ matrix.version }}
dir: ${{ github.workspace }}/Qt-${{ runner.os }}-${{ matrix.version }}
cache: true
- name: Configure NetUdp
run: |
mkdir -p build
cmake -DNETUDP_ENABLE_EXAMPLES=ON -DNETUDP_ENABLE_TESTS=ON -DNETUDP_ENABLE_QML=ON -DNETUDP_ENABLE_EXAMPLES=OFF -DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" -B build -S .
shell: bash
- name: Build NetUdp
run: cmake --build build --target "NetUdp" --config "${{ matrix.build_type }}" -j
- name: Build NetUdp Unit Tests
run: cmake --build build --target "NetUdp_Tests" --config "${{ matrix.build_type }}" -j
- name: Build NetUdp QtQuick Unit Tests
run: cmake --build build --target "NetUdp_QuickTests" --config "${{ matrix.build_type }}" -j
- name: Run NetUdp Unit tests
run: cd build && ctest --build-config "${{ matrix.build_type }}" --progress --verbose --parallel 12
if: "!contains(matrix.os, 'ubuntu')"
- name: Run NetUdp Unit tests
run: |
sudo apt install libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-xinerama0 libxcb-keysyms1 libxcb1 libxcb-render-util0 libxcb-randr0
cd build
xvfb-run ctest --build-config "${{ matrix.build_type }}" --progress --verbose --parallel 12
if: contains(matrix.os, 'ubuntu')