add badge to readme

This commit is contained in:
Hamed Masafi 2020-07-27 13:50:04 +04:30
parent 859e2d4c8c
commit eb1c7c6147
2 changed files with 2 additions and 21 deletions

View File

@ -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" nut.pro

View File

@ -1,5 +1,7 @@
# Nut
[![Build Status](https://github.com/HamedMasafi/Nut/workflows/qt/badge.svg)](https://github.com/HamedMasafi/Nut/actions)
[![Travis build Status](https://travis-ci.org/HamedMasafi/Nut.svg?branch=master)](https://travis-ci.org/HamedMasafi/Nut)
[![Appveyor build Status](https://ci.appveyor.com/api/projects/status/ebthxq6syuxob6jx?svg=true)](https://ci.appveyor.com/project/HamedMasafi/nut)
[![GitLicense](https://gitlicense.com/badge/hamedmasafi/nut)](https://gitlicense.com/license/hamedmasafi/nut)