21 lines
743 B
CMake
21 lines
743 B
CMake
# SPDX-FileCopyrightText: 2026 Christian Tosta
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# @file cmake/ActBuilder.cmake
|
|
# @brief Helper module to orchestrate local builds via act containerization
|
|
|
|
option(USE_ACT_CONTAINER "Enable local containerized build via act" OFF)
|
|
|
|
find_program(ACT_EXECUTABLE act)
|
|
|
|
if(ACT_EXECUTABLE)
|
|
message(STATUS "Found act utility: ${ACT_EXECUTABLE}")
|
|
|
|
add_custom_target(act-build
|
|
COMMAND ${ACT_EXECUTABLE} push --container-architecture linux/amd64
|
|
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
COMMENT "Running local CI pipeline using act..."
|
|
)
|
|
else()
|
|
message(WARNING "The 'act' utility was not found. Local containerized builds via act-build target will be unavailable.")
|
|
endif()
|