Compare commits

..

2 Commits

Author SHA1 Message Date
Shaun Reed 5a23df110c Debian packaging CI 2023-03-11 18:44:04 -05:00
Shaun Reed 6d51aef9cf Cleanup 2023-03-11 18:26:58 -05:00
4 changed files with 32 additions and 3 deletions

View File

@ -70,6 +70,20 @@ jobs:
shell: bash shell: bash
run: cmake --build build/ --target package --config Release run: cmake --build build/ --target package --config Release
- name: Package Qtk Library (DEB)
if: matrix.os == 'ubuntu-latest'
shell: bash
run: cpack -C Release -G DEB
- name: Upload package artifacts (DEB)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: qtk-${{ matrix.os }}-debian
path: |
build/packages/*.deb
!build/packages/_CPack_Packages/*
- name: Upload Qtk install directory - name: Upload Qtk install directory
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
@ -155,6 +169,20 @@ jobs:
shell: bash shell: bash
run: cmake --build build/ --target package --config Release run: cmake --build build/ --target package --config Release
- name: Package Qtk Library (DEB)
if: matrix.os == 'ubuntu-latest'
shell: bash
run: cpack -C Release -G DEB
- name: Upload package artifacts (DEB)
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: libqtk-${{ matrix.os }}-debian
path: |
build/packages/*.deb
!build/packages/_CPack_Packages/*
- name: Upload libqtk install - name: Upload libqtk install
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
if: always() if: always()
@ -169,6 +197,7 @@ jobs:
name: libqtk-packages-${{ matrix.os }} name: libqtk-packages-${{ matrix.os }}
path: | path: |
build/packages/ build/packages/
!build/packages/*.deb
!build/packages/_CPack_Packages/* !build/packages/_CPack_Packages/*
Build-Qtk-Plugins: Build-Qtk-Plugins:

View File

@ -23,7 +23,7 @@ if(WIN32)
set(CMAKE_COMPILE_WARNING_AS_ERROR OFF) set(CMAKE_COMPILE_WARNING_AS_ERROR OFF)
add_compile_options(/wd4131 /wd4127) add_compile_options(/wd4131 /wd4127)
endif() endif()
#add_compile_options(-fPIC) add_compile_options(-fPIC)
################################################################################ ################################################################################
# Project # Project

View File

@ -37,7 +37,7 @@ install(
) )
# Qtk Application # Qtk Application
if (QTK_BUILD_GUI OR QTK_INSTALL_PLUGINS) if(QTK_BUILD_GUI OR QTK_INSTALL_PLUGINS)
add_subdirectory(app) add_subdirectory(app)
endif() endif()

View File

@ -36,7 +36,7 @@ target_link_libraries(qtk_plugin_library PUBLIC Qt6::UiPlugin qtk_library)
# Qtk Widget Collection Plugin # Qtk Widget Collection Plugin
################################################################################ ################################################################################
# Create a Qt Designer plugin for a collection of widgets from our library. # Create a Qt Designer plugin for a collection of widgets from our library.
qt_add_plugin(qtk_collection SHARED EXCLUDE_FROM_ALL) qt_add_plugin(qtk_collection SHARED)
target_sources( target_sources(
qtk_collection PRIVATE qtk_collection PRIVATE
widgetplugincollection.cpp widgetplugincollection.h widgetplugincollection.cpp widgetplugincollection.h