Skip to content

fix

fix #168

Workflow file for this run

name: CI
on: push
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macOS-13, ubuntu-latest]
qt-version: ['5.15.2', '6.2.0']
steps:
-
uses: actions/checkout@v4
-
name: ⬆️ Install Qt
uses: jurplel/install-qt-action@v4
with:
version: ${{ matrix.qt-version }}
cache: true
-
name: 🔧 Configure QOlm
run: |
cmake -E make_directory build
cmake -DQOLM_ENABLE_TESTS=ON -DQOLM_ENABLE_EXAMPLES=ON -DCMAKE_BUILD_TYPE="Release" -B build -S .
shell: bash
-
name: 🔨 Build QOlm
run: cmake --build build --target "QOlm" --config "Release" -j
-
name: 🔨 Build Examples
run: cmake --build build --target "QOlm_Example" --config "Release" -j
-
name: 🔨 Build Cpp Tests
run: cmake --build build --target "QOlm_Tests" --config "Release" -j
-
name: 🔨 Build Qml Tests
run: cmake --build build --target "QOlm_TestsQml" --config "Release" -j
-
name: ✅ Run unit tests
run: cd build && ctest --build-config "Release" --progress --verbose
if: "!contains(matrix.os, 'ubuntu')"
-
name: ✅ Run 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 "Release" --progress --verbose
if: contains(matrix.os, 'ubuntu')
-
name: 🚀 Install QOlm
run: cmake --install build --prefix install
-
name: ✅ Test install work with find_package
run: |
cmake -E make_directory tests/FindPackageTest/build
cmake \
-DCMAKE_BUILD_TYPE="Release" \
-DCMAKE_INSTALL_PREFIX=install \
-B tests/FindPackageTest/build \
-S tests/FindPackageTest
cmake \
--build tests/FindPackageTest/build \
--target "QOlmFindPackageTest" \
--config "Release" \
-j
shell: bash