Skip to content

Commit

Permalink
Produce RPM, DEB, PKG during build
Browse files Browse the repository at this point in the history
  • Loading branch information
vhotspur committed Nov 4, 2024
1 parent bd3e33d commit f987e5b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Package
working-directory: ${{github.workspace}}/build
run: cpack -C ${{matrix.build_type}}
run: cpack -C ${{matrix.build_type}} -G "RPM;DEB;TGZ"

macos:
runs-on: macos-latest
Expand All @@ -52,4 +52,4 @@ jobs:

- name: Package
working-directory: ${{github.workspace}}/build
run: cpack
run: cpack -G productbuild
12 changes: 11 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,17 @@ cmake_minimum_required(VERSION 3.20)
include(CheckCCompilerFlag)
enable_testing()

project(PCUT C)
project(PCUT
VERSION 0.0.1
HOMEPAGE_URL "https://github.com/vhotspur/pcut"
LANGUAGES C
)
set(CPACK_PACKAGE_NAME "pcut")
set(CPACK_PACKAGE_CONTACT "Vojtech Horky <github.com/vhotspur>")
set(CPACK_PACKAGE_VENDOR "Vojtech Horky")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Plain C unit testing mini-framework")
set(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.rst")

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})


Expand Down

0 comments on commit f987e5b

Please sign in to comment.