-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
28c45d6
commit 26798a2
Showing
14 changed files
with
285 additions
and
94 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,50 @@ | ||
FROM ubuntu:20.04 | ||
ARG ARCH="x86_64" | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y lsb-release software-properties-common gnupg | ||
RUN apt-get install -y wget ninja-build ccache libstdc++-10-dev | ||
|
||
# QT DEPS | ||
RUN apt-get install -y libgl-dev libglu-dev libx11-xcb-dev libxkbcommon-x11-dev libpcre2-dev libz-dev libfreetype6-dev libpng-dev libjpeg-dev libsqlite3-dev libharfbuzz-dev libb2-dev libdouble-conversion-dev libfontconfig1-dev | ||
RUN apt-get install -y "libxcb*-dev" | ||
|
||
WORKDIR / | ||
RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.29.4/cmake-3.29.4-linux-$ARCH.sh | ||
|
||
# cmake bin | ||
RUN sh /cmake-3.29.4-linux-$ARCH.sh --skip-license --prefix=/usr | ||
RUN rm /cmake-3.29.4-linux-$ARCH.sh | ||
|
||
# Install compilers | ||
RUN wget -q https://apt.llvm.org/llvm.sh | ||
RUN chmod +x llvm.sh | ||
RUN ./llvm.sh 18 | ||
|
||
WORKDIR / | ||
RUN bash -c "\ | ||
wget -q https://download.qt.io/official_releases/qt/6.7/6.7.1/single/qt-everywhere-src-6.7.1.tar.xz &&\ | ||
tar xf qt-everywhere-src-6.7.1.tar.xz &&\ | ||
rm qt-everywhere-src-6.7.1.tar.xz &&\ | ||
cd qt-everywhere-src-6.7.1 &&\ | ||
cmake -S . -B build -G Ninja \ | ||
-D CMAKE_CXX_COMPILER=clang++-18 \ | ||
-D CMAKE_C_COMPILER=clang-18 \ | ||
-D CMAKE_INSTALL_PREFIX=\/usr \ | ||
-D QT_BUILD_SUBMODULES=\"qtbase;qt5compat;qtmultimedia;qtdeclarative\" \ | ||
-D BUILD_SHARED_LIBS=OFF \ | ||
-D INPUT_icu=no \ | ||
-D INPUT_pcre=system \ | ||
-D INPUT_glib=no \ | ||
-D INPUT_fontconfig=no \ | ||
-D INPUT_optimize_size=yes \ | ||
-D QT_USE_CCACHE=OFF \ | ||
-D CMAKE_BUILD_TYPE=Release &&\ | ||
cmake --build build --parallel &&\ | ||
cmake --build build --target install &&\ | ||
cd \/ && \ | ||
rm -rf /qt-everywhere-src-6.7.1" | ||
|
||
WORKDIR / | ||
RUN ln -s /bin/clang-18 /bin/clang | ||
RUN ln -s /bin/clang++-18 /bin/clang++ |
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,20 @@ | ||
FROM yaraslaut/static_qt:20.04 | ||
|
||
ARG ARCH="x86_64" | ||
|
||
RUN apt-get install -y git libutempter-dev make | ||
|
||
WORKDIR / | ||
COPY . /contour | ||
RUN CC=clang CXX=clang++ sh /contour/scripts/install-static.sh | ||
|
||
WORKDIR /contour | ||
RUN cmake -S . -B build -G Ninja \ | ||
-D CONTOUR_BUILD_STATIC=ON \ | ||
-D CONTOUR_USE_CPM=ON \ | ||
-D CMAKE_CXX_COMPILER=clang++-18 \ | ||
-D CMAKE_C_COMPILER=clang-18 \ | ||
-D CMAKE_CXX_FLAGS="-I/contour/build/_deps/yaml-cpp-src/include" \ | ||
-D CMAKE_PREFIX_PATH=/usr/local/Qt-6.7.1/lib/cmake | ||
RUN cmake --build build --verbose | ||
RUN ldd ./build/src/contour/contour |
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,14 @@ | ||
To build static image we need to build qt static docker container and put it on dockerhub : | ||
``` | ||
docker buildx build --tag qt_static:20.04 --progress=plain -f .github/static/DockerQt --load . | ||
docker tag qt_static:20.04 yaraslaut/static_qt:20.04 | ||
docker push yaraslaut/static_qt:20.04 | ||
``` | ||
|
||
Then we can use it to build contour inside github actions with | ||
``` | ||
docker buildx build --tag static_contour --progress=plain -f .github/static/DockerUbuntu --load . | ||
docker create --name contour_static contour_static | ||
docker cp contour_static:/contour/build/src/contour/contour . | ||
docker container rm contour_static | ||
``` |
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
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 |
---|---|---|
|
@@ -67,3 +67,5 @@ src/contour/ui/main.qml | |
|
||
# mkdocs | ||
docs/vt-sequence/index.md | ||
|
||
version.txt |
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
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
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
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.