aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Jahn <lnj@kaidan.im>2022-09-04 18:53:35 +0200
committerLinus Jahn <lnj@kaidan.im>2022-09-04 19:17:53 +0200
commita9dc4915371087e2d706fad95d4fccf11745ba63 (patch)
treee871a01fe323838e120d398651856697eaedac1d
parent17c6b1a9c776dc9820181f190b93a0c76bf0e1d5 (diff)
downloadqxmpp-a9dc4915371087e2d706fad95d4fccf11745ba63.tar.gz
ci: Add Qt 6 builds
-rw-r--r--.github/workflows/tests.yml10
-rwxr-xr-xtests/travis/build-and-test2
-rwxr-xr-xtests/travis/install-build-depends8
3 files changed, 15 insertions, 5 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 45f68da2..cc1d7ebd 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -22,9 +22,15 @@ jobs:
- os: ubuntu-latest
config: full
qt_version: 5.9.*
+ - os: ubuntu-latest
+ config: minimal
+ qt_version: 6.0.*
+ - os: ubuntu-latest
+ config: minimal
+ qt_version: 6.*.*
- os: macos-latest
- config: full
- qt_version: 5.9.*
+ config: minimal
+ qt_version: 6.*.*
steps:
- uses: actions/checkout@v2
- name: Install Qt
diff --git a/tests/travis/build-and-test b/tests/travis/build-and-test
index 400831d5..c39f1806 100755
--- a/tests/travis/build-and-test
+++ b/tests/travis/build-and-test
@@ -14,7 +14,7 @@ case "$CONFIG" in
full*)
CMAKE_ARGS="-DBUILD_DOCUMENTATION:BOOL=True -DBUILD_EXAMPLES:BOOL=True -DWITH_GSTREAMER:BOOL=True"
case "$QT_VERSION" in
- 5.15*)
+ 5.15* | 6*)
# Enable OMEMO
CMAKE_ARGS="$CMAKE_ARGS -DBUILD_OMEMO=ON"
;;
diff --git a/tests/travis/install-build-depends b/tests/travis/install-build-depends
index 3fa14a28..9a8b4fed 100755
--- a/tests/travis/install-build-depends
+++ b/tests/travis/install-build-depends
@@ -47,13 +47,17 @@ fi
case "$CONFIG" in
full*)
+ # Enable OMEMO for Qt > 5.15 (including Qt 6)
+ # Build and install qca and libomemo-c
case "$QT_VERSION" in
5.15*)
- # OMEMO enabled
- # Build and install qca and libomemo-c
install_cmake libomemo-c https://github.com/dino/libomemo-c "-DBUILD_SHARED_LIBS=ON"
install_cmake qca https://invent.kde.org/libraries/qca "-DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF -DBUILD_WITH_QT6=OFF"
;;
+ 6*)
+ install_cmake libomemo-c https://github.com/dino/libomemo-c "-DBUILD_SHARED_LIBS=ON"
+ install_cmake qca https://invent.kde.org/libraries/qca "-DBUILD_TESTS=OFF -DBUILD_TOOLS=OFF -DBUILD_WITH_QT6=ON"
+ ;;
esac
;;
esac