Skip to content

Commit bb3ca71

Browse files
committed
PR comments
1 parent 503171d commit bb3ca71

File tree

5 files changed

+9
-42
lines changed

5 files changed

+9
-42
lines changed

.github/actions/generate/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ inputs:
3838
required: true
3939
default: "false"
4040
package:
41-
description: Whether to generate Linux binary packages
41+
description: Whether to generate Debian package
4242
required: true
4343
default: "false"
4444

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ on:
6464
default: ""
6565

6666
package:
67-
description: Build Linux deb package
67+
description: Whether to generate Debian package
6868
required: false
6969
type: boolean
7070
default: true

.github/workflows/build_impl.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ on:
6060
default: ""
6161

6262
package:
63-
description: Build Linux deb package
63+
description: Whether to generate Debian package
6464
required: false
6565
type: boolean
6666

@@ -164,14 +164,14 @@ jobs:
164164
path: build/clio_server
165165

166166
- name: Upload clio_tests
167-
if: ${{ !inputs.code_coverage && !inputs.analyze_build_time }}
167+
if: ${{ !inputs.code_coverage && !inputs.analyze_build_time && !inputs.package }}
168168
uses: actions/upload-artifact@v4
169169
with:
170170
name: clio_tests_${{ runner.os }}_${{ inputs.build_type }}_${{ inputs.conan_profile }}
171171
path: build/clio_tests
172172

173173
- name: Upload clio_integration_tests
174-
if: ${{ !inputs.code_coverage && !inputs.analyze_build_time }}
174+
if: ${{ !inputs.code_coverage && !inputs.analyze_build_time && !inputs.package }}
175175
uses: actions/upload-artifact@v4
176176
with:
177177
name: clio_integration_tests_${{ runner.os }}_${{ inputs.build_type }}_${{ inputs.conan_profile }}
@@ -181,7 +181,7 @@ jobs:
181181
if: inputs.package
182182
uses: actions/upload-artifact@v4
183183
with:
184-
name: Clio_debian_package
184+
name: clio_deb_package_${{ runner.os }}_${{ inputs.build_type }}_${{ inputs.conan_profile }}
185185
path: build/*.deb
186186

187187
- name: Save cache

cmake/ClioPackage.cmake

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,7 @@
1-
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/clio")
21
include("${CMAKE_CURRENT_LIST_DIR}/ClioVersion.cmake")
32

4-
set(VERSION ${CLIO_VERSION})
5-
6-
if (VERSION MATCHES "^([0-9]+)\.([0-9]+)\.([0-9]+)(-(b|rc|hf)([0-9]+))?$|^([0-9a-zA-Z]+)-(.+)-([0-9a-fA-F]+)$")
7-
if (CMAKE_MATCH_2)
8-
set(MAJOR "${CMAKE_MATCH_1}")
9-
set(MINOR "${CMAKE_MATCH_2}")
10-
set(PATCH "${CMAKE_MATCH_3}")
11-
message(DEBUG " Major: ${MAJOR}")
12-
message(DEBUG " Minor: ${MINOR}")
13-
message(DEBUG " Patch: ${PATCH}")
14-
set(release_type "release ${MAJOR}.${MINOR}.${PATCH}")
15-
if (CMAKE_MATCH_4)
16-
set(PRE_TYPE "${CMAKE_MATCH_5}")
17-
set(PRE_NUM "${CMAKE_MATCH_6}")
18-
message(DEBUG " Pre-release type: ${PRE_TYPE}")
19-
message(DEBUG " Pre-release number number: ${PRE_NUM}")
20-
set(release_type "pre-${release_type}-${PRE_TYPE}-${PRE_NUM}")
21-
endif ()
22-
else ()
23-
set(DATE "${CMAKE_MATCH_7}")
24-
set(BRANCH "${CMAKE_MATCH_8}")
25-
set(GIT_HASH "${CMAKE_MATCH_9}")
26-
message(DEBUG " Date: ${DATE}")
27-
message(DEBUG " Branch: ${BRANCH}")
28-
message(DEBUG " Git hash: ${GIT_HASH}")
29-
set(release_type "development ${DATE}-${BRANCH}-${GIT_HASH}")
30-
endif ()
31-
set(CPACK_PACKAGE_VERSION "${CMAKE_MATCH_0}")
32-
else ()
33-
message(FATAL_ERROR "Version string '${CLIO_VERSION}' did not match expected patterns.")
34-
endif ()
35-
36-
message(STATUS "Release type: ${release_type}")
37-
3+
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/clio")
4+
set(CPACK_PACKAGE_VERSION "${CLIO_VERSION}")
385
set(CPACK_STRIP_FILES TRUE)
396

407
include(pkg/deb)

cmake/pkg/postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ case "$1" in
1212
configure)
1313
if ! id -u "$USER_NAME" >/dev/null 2>&1; then
1414
adduser --system --quiet \
15-
--home /nonexistent --no-create-home \
15+
--no-create-home \
1616
--disabled-password \
1717
--group "$GROUP_NAME"
1818
fi

0 commit comments

Comments
 (0)