-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix qtzlib support for Qt6, add CI tests
- add 3 docker images qith qt5 and qt6 static builds for usage in CI (#194) - add Linux and Windows CI for qtzlib option - fix qtzlib for Qt6, now links to both BundledZLIB (static lib) and ZlibPrivate (headers) - fail fast if Qt zlib module is not found to prevent accidental linking to system zlib
- Loading branch information
Showing
9 changed files
with
589 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Minimal Qt build images for CI | ||
|
||
These include minimal Qt built from source with `-qt-zlib` option to test `-DQUAZIP_USE_QT_ZLIB=ON` builds. | ||
|
||
`jurplel/install-qt-action` is essentially a binary downloader from Qt and does not have all options available. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
FROM ubuntu:22.04 as builder | ||
|
||
WORKDIR /build | ||
|
||
RUN apt-get -y update && apt-get -y install build-essential cmake tar wget python3 | ||
|
||
RUN wget -qO- https://ftp.fau.de/qtproject/archive/qt/5.15/5.15.12/single/qt-everywhere-opensource-src-5.15.12.tar.xz | tar xJ | ||
|
||
RUN qt-everywhere-src-5.15.12/configure -qt-zlib \ | ||
-static \ | ||
-opensource \ | ||
-confirm-license \ | ||
-optimize-size \ | ||
-nomake examples \ | ||
-nomake tests \ | ||
-no-dbus \ | ||
-no-fontconfig \ | ||
-no-opengl \ | ||
-no-openssl \ | ||
-no-gui \ | ||
-skip qtconnectivity \ | ||
-skip qtdatavis3d \ | ||
-skip qtdeclarative \ | ||
-skip qtdoc \ | ||
-skip qtactiveqt \ | ||
-skip qt3d \ | ||
-skip qtimageformats \ | ||
-skip qtlocation \ | ||
-skip qtmultimedia \ | ||
-skip qtopcua \ | ||
-skip qtremoteobjects \ | ||
-skip qtscxml \ | ||
-skip qtsensors \ | ||
-skip qtserialbus \ | ||
-skip qtserialport \ | ||
-skip qtspeech \ | ||
-skip qtsvg \ | ||
-skip qttools \ | ||
-skip qttranslations \ | ||
-skip qtwebchannel \ | ||
-skip qtwebengine \ | ||
-skip qtwebsockets \ | ||
-skip qtwebview \ | ||
-skip qtcharts \ | ||
-skip qtcoap \ | ||
-skip qtlottie \ | ||
-skip qtmqtt \ | ||
-skip qtnetworkauth \ | ||
-skip qtquick3d \ | ||
-skip qtquicktimeline \ | ||
-skip qtvirtualkeyboard \ | ||
-skip qtwayland \ | ||
-skip qtcanvas3d \ | ||
-skip qtgamepad \ | ||
-skip qtpurchasing \ | ||
-skip qtscript | ||
|
||
RUN make -j$(nproc) && make install | ||
|
||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get -y update && apt-get -y install git build-essential cmake | ||
|
||
COPY --from=builder /usr/local/Qt-5.15.12 /usr/local/Qt-5.15.12 | ||
|
||
# Temporary workaround for https://github.com/stachenov/quazip/issues/127 | ||
ENV LC_ALL=C.UTF-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
FROM ubuntu:22.04 AS builder | ||
|
||
WORKDIR /build | ||
|
||
RUN apt-get -y update && apt-get -y install build-essential cmake tar wget python3 | ||
|
||
RUN wget -qO- https://ftp.fau.de/qtproject/archive/qt/6.4/6.4.3/single/qt-everywhere-src-6.4.3.tar.xz | tar xJ | ||
|
||
RUN qt-everywhere-src-6.4.3/configure -qt-zlib \ | ||
-static \ | ||
-opensource \ | ||
-confirm-license \ | ||
-optimize-size \ | ||
-nomake examples \ | ||
-nomake tests \ | ||
-no-dbus \ | ||
-no-fontconfig \ | ||
-no-opengl \ | ||
-no-openssl \ | ||
-no-gui \ | ||
-skip qtconnectivity \ | ||
-skip qtdatavis3d \ | ||
-skip qtdeclarative \ | ||
-skip qtdoc \ | ||
-skip qtactiveqt \ | ||
-skip qt3d \ | ||
-skip qtgraphs \ | ||
-skip qtgrpc \ | ||
-skip qtimageformats \ | ||
-skip qtlanguageserver \ | ||
-skip qtlocation \ | ||
-skip qthttpserver \ | ||
-skip qtmultimedia \ | ||
-skip qtopcua \ | ||
-skip qtpositioning \ | ||
-skip qtremoteobjects \ | ||
-skip qtscxml \ | ||
-skip qtsensors \ | ||
-skip qtserialbus \ | ||
-skip qtserialport \ | ||
-skip qtshadertools \ | ||
-skip qtspeech \ | ||
-skip qtsvg \ | ||
-skip qttools \ | ||
-skip qttranslations \ | ||
-skip qtwebchannel \ | ||
-skip qtwebengine \ | ||
-skip qtwebsockets \ | ||
-skip qtwebview \ | ||
-skip qtcharts \ | ||
-skip qtcoap \ | ||
-skip qtlottie \ | ||
-skip qtmqtt \ | ||
-skip qtnetworkauth \ | ||
-skip qtquick3d \ | ||
-skip qtquick3dphysics \ | ||
-skip qtquickeffectmaker \ | ||
-skip qtquicktimeline \ | ||
-skip qtvirtualkeyboard \ | ||
-skip qtwayland \ | ||
-skip qtcanvas3d \ | ||
-skip qtgamepad \ | ||
-skip qtpurchasing \ | ||
-skip qtscript | ||
|
||
RUN cmake --build . --parallel --target install | ||
|
||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get -y update && apt-get -y install build-essential cmake | ||
|
||
COPY --from=builder /usr/local/Qt-6.4.3 /usr/local/Qt-6.4.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
FROM ubuntu:22.04 as builder | ||
|
||
WORKDIR /build | ||
|
||
RUN apt-get -y update && apt-get -y install build-essential cmake tar wget python3 | ||
|
||
RUN wget -qO- https://ftp.fau.de/qtproject/archive/qt/6.6/6.6.2/single/qt-everywhere-src-6.6.2.tar.xz | tar xJ | ||
|
||
RUN qt-everywhere-src-6.6.2/configure -qt-zlib \ | ||
-static \ | ||
-opensource \ | ||
-confirm-license \ | ||
-optimize-size \ | ||
-nomake examples \ | ||
-nomake tests \ | ||
-no-dbus \ | ||
-no-fontconfig \ | ||
-no-opengl \ | ||
-no-openssl \ | ||
-no-gui \ | ||
-skip qtconnectivity \ | ||
-skip qtdatavis3d \ | ||
-skip qtdeclarative \ | ||
-skip qtdoc \ | ||
-skip qtactiveqt \ | ||
-skip qt3d \ | ||
-skip qtgraphs \ | ||
-skip qtgrpc \ | ||
-skip qtimageformats \ | ||
-skip qtlanguageserver \ | ||
-skip qtlocation \ | ||
-skip qthttpserver \ | ||
-skip qtmultimedia \ | ||
-skip qtopcua \ | ||
-skip qtpositioning \ | ||
-skip qtremoteobjects \ | ||
-skip qtscxml \ | ||
-skip qtsensors \ | ||
-skip qtserialbus \ | ||
-skip qtserialport \ | ||
-skip qtshadertools \ | ||
-skip qtspeech \ | ||
-skip qtsvg \ | ||
-skip qttools \ | ||
-skip qttranslations \ | ||
-skip qtwebchannel \ | ||
-skip qtwebengine \ | ||
-skip qtwebsockets \ | ||
-skip qtwebview \ | ||
-skip qtcharts \ | ||
-skip qtcoap \ | ||
-skip qtlottie \ | ||
-skip qtmqtt \ | ||
-skip qtnetworkauth \ | ||
-skip qtquick3d \ | ||
-skip qtquick3dphysics \ | ||
-skip qtquickeffectmaker \ | ||
-skip qtquicktimeline \ | ||
-skip qtvirtualkeyboard \ | ||
-skip qtwayland \ | ||
-skip qtcanvas3d \ | ||
-skip qtgamepad \ | ||
-skip qtpurchasing \ | ||
-skip qtscript | ||
|
||
RUN cmake --build . --parallel --target install | ||
|
||
FROM ubuntu:22.04 | ||
|
||
RUN apt-get -y update && apt-get -y install build-essential cmake | ||
|
||
COPY --from=builder /usr/local/Qt-6.6.2 /usr/local/Qt-6.6.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.