feat(ci): try install deb in ubuntu ci

This commit is contained in:
Percy Hong 2020-11-17 19:32:53 +08:00 committed by Gary Wang
parent 5080a499ea
commit 338aa646b9
2 changed files with 5 additions and 1 deletions

View File

@ -18,6 +18,10 @@ jobs:
cmake ../ cmake ../
make make
cpack -G DEB cpack -G DEB
- name: Try install it
run: |
cd build
sudo apt install ./*.deb
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v2
with: with:
name: ubuntu-20.04-deb-package name: ubuntu-20.04-deb-package

View File

@ -239,7 +239,7 @@ elseif (APPLE)
# ... # ...
elseif (UNIX) elseif (UNIX)
set (CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}") set (CPACK_SYSTEM_NAME "${CMAKE_SYSTEM_NAME}-${CMAKE_SYSTEM_PROCESSOR}")
set (CPACK_DEBIAN_PACKAGE_DEPENDS "libqt5svg5, libexiv2-14") set (CPACK_DEBIAN_PACKAGE_SHILIBDEPS ON)
set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat-plugins") set (CPACK_DEBIAN_PACKAGE_RECOMMENDS "kimageformat-plugins")
endif() endif()