Package
publish / publish (push) Successful in 14m12s

This commit is contained in:
khodowany
2026-09-30 19:46:20 -05:00
parent 4f5f6a5312
commit 8bedccaa02
5 changed files with 22 additions and 17 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ jobs:
run: python3 modulus.py configure --target x86_64_gcc12_release --update
- name: Check code style
run: |
python3 -m pip install --no-cache-dir -r build/build_tools/docker/format-requirements.txt
python3 -m pip install --no-cache-dir -r build/build_tools/docker/format_requirements.txt
python3 modulus.py format --check
- name: Build native release
run: python3 modulus.py build --target x86_64_gcc12_release
+6 -6
View File
@@ -56,7 +56,7 @@ if(BUILD_TESTING)
endif()
install(TARGETS sonus
EXPORT sonus-targets
EXPORT sonus_targets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
@@ -64,25 +64,25 @@ install(TARGETS sonus
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(EXPORT sonus-targets
install(EXPORT sonus_targets
NAMESPACE sonus::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/sonus
)
configure_package_config_file(
${CMAKE_CURRENT_SOURCE_DIR}/cmake/sonus_config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/sonus-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/sonusConfig.cmake
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/sonus
)
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/sonus-config-version.cmake
${CMAKE_CURRENT_BINARY_DIR}/sonusConfigVersion.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/sonus-config.cmake
${CMAKE_CURRENT_BINARY_DIR}/sonus-config-version.cmake
${CMAKE_CURRENT_BINARY_DIR}/sonusConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/sonusConfigVersion.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/sonus
)
+1 -1
View File
@@ -3,4 +3,4 @@
include(CMakeFindDependencyMacro)
find_dependency(modulus CONFIG REQUIRED)
include("${CMAKE_CURRENT_LIST_DIR}/sonus-targets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/sonus_targets.cmake")
+9 -4
View File
@@ -9,7 +9,7 @@ import sys
PACKAGE_REF = "modulus/latest"
CONAN_VERSION = "2.26.2"
FETCH_IMAGE = "modulus-fetch:dev"
FETCH_IMAGE = "modulus_fetch:dev"
COMMANDS = (
"configure",
"build",
@@ -19,6 +19,8 @@ COMMANDS = (
"clangd",
"format",
"run",
"python",
"publish",
)
COMMON_DIR = pathlib.Path("build") / "build_common"
TOOLS_DIR = pathlib.Path("build") / "build_tools"
@@ -26,7 +28,7 @@ RUNTIME_DIR = COMMON_DIR / "modulus"
CONAN_HOME_DIR = COMMON_DIR / "conan_cache"
DEFAULT_REMOTE_NAME = "khodo"
DEFAULT_REMOTE_URL = "https://git.thyme-labs.com/api/packages/khodo/conan"
DEFAULT_DOCKER_MARKER = "/opt/modulus-build-image"
DEFAULT_DOCKER_MARKER = "/opt/modulus_build_image"
def repo_root():
root = pathlib.Path(__file__).resolve().parent
@@ -66,6 +68,9 @@ def runtime_ready(root):
and (root / TOOLS_DIR / "format.py").is_file()
and (root / RUNTIME_DIR / "modulus" / "formatting.py").is_file()
and (root / RUNTIME_DIR / "modulus" / "format_layout.py").is_file()
and (root / RUNTIME_DIR / "modulus" / "python.py").is_file()
and (root / RUNTIME_DIR / "modulus" / "artifacts.py").is_file()
and (root / TOOLS_DIR / "python_runner.py").is_file()
)
def env_flag(name):
@@ -114,9 +119,9 @@ RUN apt-get update \\
python3-venv \\
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m venv /opt/modulus-python
RUN python3 -m venv /opt/modulus_python
ENV PATH=/opt/modulus-python/bin:$PATH
ENV PATH=/opt/modulus_python/bin:$PATH
RUN python -m pip install --no-cache-dir conan=={CONAN_VERSION}
+5 -5
View File
@@ -3,23 +3,23 @@ if(sonus_interface_libraries AND sonus_interface_libraries MATCHES "miniaudio|Op
message(FATAL_ERROR "sonus::sonus must not expose private audio or unrelated third-party libraries in its public link interface")
endif()
add_executable(sonus-test
add_executable(sonus_test
test.cpp
render_snapshot.cpp
control.cpp
sequence.cpp
)
find_package(Threads REQUIRED)
target_include_directories(sonus-test PRIVATE
target_include_directories(sonus_test PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
${PROJECT_SOURCE_DIR}/src
)
target_link_libraries(sonus-test PRIVATE
target_link_libraries(sonus_test PRIVATE
sonus::sonus
Threads::Threads
)
target_compile_features(sonus-test PRIVATE cxx_std_23)
add_test(NAME sonus COMMAND sonus-test)
target_compile_features(sonus_test PRIVATE cxx_std_23)
add_test(NAME sonus COMMAND sonus_test)
set_tests_properties(sonus PROPERTIES TIMEOUT 20)
add_custom_target(check
COMMAND ${CMAKE_CTEST_COMMAND}