File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313jobs :
1414
1515 # ========================================================================
16- debian11_qhttpserver :
17- name : " Build the package for Debian 11 "
16+ debian12_qhttpserver :
17+ name : " Build the package for Debian 12 "
1818 runs-on : ubuntu-latest
1919 steps :
2020 - name : Checkout code
@@ -33,12 +33,12 @@ jobs:
3333 large-packages : false
3434 swap-storage : true
3535 - name : Build image
36- run : docker build -f ./Dockerfile-debian11 -t aymara/qhttpserver-debian11 :build .
36+ run : docker build -f ./Dockerfile-debian12 -t aymara/qhttpserver-debian12 :build .
3737 - name : Extract package and version number from docker image
3838 id : extract
3939 shell : bash
4040 run : |
41- dockerImage="aymara/qhttpserver-debian11 :build"
41+ dockerImage="aymara/qhttpserver-debian12 :build"
4242 packageDir="/usr/share/apps/qhttpserver/packages/"
4343 cicd/extract_package.sh $dockerImage $packageDir $GITHUB_OUTPUT
4444 - name : Upload nightly build package
Original file line number Diff line number Diff line change @@ -91,9 +91,9 @@ set(CMAKE_PREFIX_PATH
9191
9292set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -fPIC -lpthread" )
9393
94- # It is necessary to define Qt5_INSTALL_DIR in your environment.
94+ # It is necessary to define Qt6_INSTALL_DIR in your environment.
9595set (CMAKE_PREFIX_PATH
96- "$ENV{Qt5_INSTALL_DIR } "
96+ "$ENV{Qt6_INSTALL_DIR } "
9797 "${CMAKE_PREFIX_PATH } "
9898)
9999
@@ -108,15 +108,15 @@ endif()
108108
109109set (CMAKE_INCLUDE_CURRENT_DIR ON )
110110set (CMAKE_AUTOMOC ON )
111- find_package (Qt5 REQUIRED COMPONENTS Core Network )
112- set (Qt5_LIBRARIES Qt5 ::Core Qt5 ::Network )
113- message ("Found Qt5 ${Qt5Core_VERSION } " )
111+ find_package (Qt6 REQUIRED COMPONENTS Core Network )
112+ set (Qt6_LIBRARIES Qt6 ::Core Qt6 ::Network )
113+ message ("Found Qt6 ${Qt6Core_VERSION } " )
114114
115- message ("\n\n\n {Qt5_LIBRARIES }=${Qt5_LIBRARIES } " )
115+ message ("\n\n\n {Qt6_LIBRARIES }=${Qt6_LIBRARIES } " )
116116
117117if (${CMAKE_SYSTEM_NAME } STREQUAL "Windows" )
118- get_target_property (QtCore_location Qt5 ::Core LOCATION)
119- get_target_property (QtNetwork_location Qt5 ::Network LOCATION)
118+ get_target_property (QtCore_location Qt6 ::Core LOCATION)
119+ get_target_property (QtNetwork_location Qt6 ::Network LOCATION)
120120 install (FILES ${QtCore_location}
121121 ${QtNetwork_location}
122122 DESTINATION ${LIB_INSTALL_DIR} )
Original file line number Diff line number Diff line change 1+ FROM debian:12
2+
3+ ARG TRAVIS_JOB_NUMBER
4+ ENV DEBIAN_FRONTEND=noninteractive
5+
6+ # Setup
7+ RUN apt-get update -y -qq && apt-get install -y apt-utils wget bzip2 git gcc g++ cmake cmake-data ninja-build qt6-base-dev-tools qt6-declarative-dev packaging-dev -qq
8+ RUN mkdir -p /src/
9+ RUN git clone https://github.com/aymara/qhttpserver /src/qhttpserver
10+
11+ RUN mkdir -p /src/qhttpserver/build
12+
13+ # Build
14+ WORKDIR /src/qhttpserver/build
15+ RUN cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
16+ RUN ninja all && ninja package
17+ RUN echo "export packagefile=`find /src/qhttpserver/build/ -maxdepth 1 -name *.deb`" > /envfile
18+ RUN echo "export fullname=\$(basename -- \$packagefile)" >> /envfile
19+ RUN echo "export extension=\${fullname##*.}" >> /envfile
20+ RUN echo "export filename=\${fullname%.*}" >> /envfile
21+ RUN . /envfile && install -D ${packagefile} "/usr/share/apps/qhttpserver/packages/${filename}-debian11.deb"
22+
23+ ## install github-release to be able to deploy packages
24+ #RUN wget https://github.com/aktau/github-release/releases/download/v0.7.2/linux-amd64-github-release.tar.bz2 && tar xjf linux-amd64-github-release.tar.bz2 && cp bin/linux/amd64/github-release /usr/bin
Original file line number Diff line number Diff line change @@ -3,8 +3,7 @@ FROM ubuntu:22.04
33ENV DEBIAN_FRONTEND=noninteractive
44
55# Setup
6- RUN apt-get update -y -qq
7- RUN apt-get install -y apt-utils wget bzip2 git gcc g++ cmake cmake-data ninja-build qtbase5-dev-tools qtdeclarative5-dev packaging-dev -qq
6+ RUN apt-get update -y -qq && apt-get install -y apt-utils wget bzip2 git gcc g++ cmake cmake-data ninja-build qt6-base-dev-tools qt6-declarative-dev packaging-dev -qq
87RUN mkdir -p /src/
98RUN git clone https://github.com/aymara/qhttpserver /src/qhttpserver
109
You can’t perform that action at this time.
0 commit comments