Skip to content

Commit

Permalink
ci: windows: Build with OMEMO enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
lnjX committed Oct 21, 2024
1 parent 2823db8 commit 4efd58b
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 4efd58b

Please sign in to comment.