From 5445ca989fd5215f87e449841fedc78c1f4dc507 Mon Sep 17 00:00:00 2001 From: Hamed Masafi Date: Mon, 27 Jul 2020 13:32:33 +0430 Subject: [PATCH] try 3 --- .github/workflows/qt.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/qt.yml b/.github/workflows/qt.yml index 48aa071..8364f90 100644 --- a/.github/workflows/qt.yml +++ b/.github/workflows/qt.yml @@ -62,6 +62,28 @@ jobs: run: | qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} "QT_TOOL_PATH=${{steps.qt.outputs.qtdir}}/Tools" ${{steps.qt.outputs.make}} qmake_all + - name: install packagekit + if: matrix.platform == 'gcc_64' + run: | + sudo apt-get -qq install packagekit + export PKG_CONFIG_PATH=${{steps.qt.outputs.qtdir}}/lib/pkgconfig/:$PKG_CONFIG_PATH + echo "::set-env name=PKG_CONFIG_PATH::$PKG_CONFIG_PATH" + - name: build PackageKit-Qt + if: steps.cache-qt.outputs.cache-hit != 'true' && matrix.platform == 'gcc_64' + run: | + sed -i 's/set(BUILD_SHARED_LIBS ON)/set(BUILD_SHARED_LIBS OFF)/g' CMakeLists.txt + export CMAKE_PREFIX_PATH=${{steps.qt.outputs.qtdir}}:$CMAKE_PREFIX_PATH + mkdir build && cd build + cmake \ + "-DCMAKE_INSTALL_PREFIX=$(qmake -query QT_INSTALL_PREFIX)" \ + "-DCMAKE_INSTALL_LIBDIR=$(qmake -query QT_INSTALL_LIBS)" \ + "-DCMAKE_INSTALL_INCLUDEDIR=$(qmake -query QT_INSTALL_HEADERS)" \ + ".." + ${{steps.qt.outputs.make}} + ${{steps.qt.outputs.make}} install + pkg-config --exists packagekitqt5 + working-directory: src/3rdparty/PackageKit-Qt + - name: make module run: | ${{steps.qt.outputs.make}}