Skip to content

👷 Rename CI to qt5 & qt6 #33

👷 Rename CI to qt5 & qt6

👷 Rename CI to qt5 & qt6 #33

Workflow file for this run

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')