From 4efd58be4dc01d1999f9800080cdc32b621f70c2 Mon Sep 17 00:00:00 2001 From: Linus Jahn Date: Thu, 10 Oct 2024 15:53:48 +0200 Subject: [PATCH] ci: windows: Build with OMEMO enabled --- .github/workflows/tests.yml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7ee6f41ae..bae9e4b01 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -77,6 +77,7 @@ jobs: runs-on: windows-latest env: QT_VERSION: ${{ matrix.qt_version }} + BUILD_WITH_QT6: ${{ (startsWith(matrix.qt_version, '6.') && 'ON') || 'OFF' }} strategy: fail-fast: false matrix: @@ -87,10 +88,36 @@ jobs: uses: jurplel/install-qt-action@v3 with: version: ${{ matrix.qt_version }} + modules: ${{ (startsWith(matrix.qt_version, '6.') && 'qt5compat') || '' }} + - name: Install deps + run: | + choco install pkgconfiglite + - name: Build QCA + shell: bash + run: | + mkdir D:/a/usr + git clone https://invent.kde.org/libraries/qca + cd qca + cmake . -DCMAKE_INSTALL_PREFIX="D:/a/usr" -DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF -DBUILD_WITH_QT6=${BUILD_WITH_QT6} + cmake --build . --config Release --parallel + cmake --install . --config Release + cd .. + - name: Build libomemo-c + run: | + git clone https://github.com/dino/libomemo-c + cd libomemo-c + git checkout v0.5.0 + cmake . -DCMAKE_INSTALL_PREFIX="D:/a/usr" + cmake --build . --config Release --parallel + cmake --install . --config Release + cd .. - name: Run tests run: | + ${env:PATH} += ";D:/a/usr/bin" ${env:PATH} += ";D:/a/qxmpp/qxmpp/src/Debug" - cmake . && cmake --build . + ${env:PKG_CONFIG_PATH} += ";D:/a/usr/lib/pkgconfig" + + cmake . -DBUILD_OMEMO=ON && cmake --build . --parallel # ctest # ctest --rerun-failed --output-on-failure