try 2
This commit is contained in:
parent
a3a4720c5a
commit
cdc5b04c56
|
|
@ -58,27 +58,6 @@ jobs:
|
|||
version: ${{matrix.version}}
|
||||
platform: ${{matrix.platform}}
|
||||
packages: qt.tools.ifw.32
|
||||
- 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: qmake
|
||||
run: |
|
||||
qmake CONFIG+=install_ok QT_PLATFORM=${{matrix.platform}} "QT_TOOL_PATH=${{steps.qt.outputs.qtdir}}/Tools"
|
||||
|
|
@ -87,41 +66,6 @@ jobs:
|
|||
run: |
|
||||
${{steps.qt.outputs.make}}
|
||||
${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
|
||||
- name: make tests
|
||||
if: steps.qt.outputs.tests == 'true' && !contains(matrix.platform, 'mingw')
|
||||
run: |
|
||||
${{steps.qt.outputs.make}} all
|
||||
${{steps.qt.outputs.make}} ${{steps.qt.outputs.testflags}} run-tests
|
||||
- name: make examples
|
||||
if: matrix.platform == 'gcc_64'
|
||||
run: |
|
||||
${{steps.qt.outputs.make}} sub-examples
|
||||
cd examples && ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
|
||||
- name: make doc
|
||||
if: matrix.platform == 'gcc_64'
|
||||
run: |
|
||||
${{steps.qt.outputs.make}} doxygen
|
||||
cd doc && ${{steps.qt.outputs.make}} INSTALL_ROOT="${{steps.qt.outputs.installdir}}" install
|
||||
- name: upload examples to releases
|
||||
uses: Skycoder42/action-upload-release@master
|
||||
if: matrix.platform == 'gcc_64' && startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
repo_token: ${{secrets.GITHUB_TOKEN}}
|
||||
directory: ${{steps.qt.outputs.outdir}}
|
||||
platform: examples
|
||||
asset_name: qtautoupdater-examples-${{matrix.version}}
|
||||
tag: ${{github.ref}}
|
||||
overwrite: true
|
||||
- name: upload doc to releases
|
||||
uses: Skycoder42/action-upload-release@master
|
||||
if: matrix.platform == 'gcc_64' && startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
repo_token: ${{secrets.GITHUB_TOKEN}}
|
||||
directory: ${{steps.qt.outputs.outdir}}
|
||||
platform: doc
|
||||
asset_name: qtautoupdater-doc-${{matrix.version}}
|
||||
tag: ${{github.ref}}
|
||||
overwrite: true
|
||||
- name: upload module to releases
|
||||
uses: Skycoder42/action-upload-release@master
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
|
|
|
|||
Loading…
Reference in New Issue