Add Alpine package build target and metadata generation
- Create CMake target for generating Alpine package (apk) - Add APKBUILD metadata generation in GitHub workflow - Configure package details including version, description, and dependencies - Streamline Alpine package creation process
This commit is contained in:
@@ -136,3 +136,12 @@ target_link_libraries(silkscreen utils)
|
||||
target_link_libraries(cpu_check avx compressor crc32c crypto fvt_controller hasher malign_buffer pattern_generator silkscreen utils)
|
||||
|
||||
install (TARGETS cpu_check DESTINATION bin)
|
||||
|
||||
# Alpine package target
|
||||
add_custom_target(apk
|
||||
COMMAND mkdir -p "${CMAKE_BINARY_DIR}/pkg/usr/bin"
|
||||
COMMAND cp "${CMAKE_BINARY_DIR}/cpu_check" "${CMAKE_BINARY_DIR}/pkg/usr/bin/"
|
||||
COMMAND cd "${CMAKE_BINARY_DIR}" && tar -czf "cpu-check-${PROJECT_VERSION}-r$ENV{PKG_RELEASE}.apk" -C pkg .
|
||||
DEPENDS cpu_check
|
||||
COMMENT "Creating Alpine package"
|
||||
)
|
||||
|
Reference in New Issue
Block a user