docs: Update 2 files
Some checks failed
Build-Test-Publish / build (linux/arm64) (push) Failing after 9s
Build-Test-Publish / build (linux/amd64) (push) Failing after 45s
Build-Test-Publish / test-install-from-scratch (linux/amd64) (push) Has been skipped
Build-Test-Publish / test-install-from-scratch (linux/arm64) (push) Has been skipped

This commit is contained in:
Your Name
2025-06-25 18:33:25 +12:00
parent f6852828ad
commit 1136ffbbce
2 changed files with 9 additions and 2 deletions

View File

@ -5,6 +5,8 @@ if(NOT DEFINED PROJECT_NAME)
message(FATAL_ERROR "PROJECT_NAME is not defined. Pass it via -DPROJECT_NAME=<name>") message(FATAL_ERROR "PROJECT_NAME is not defined. Pass it via -DPROJECT_NAME=<name>")
endif() endif()
project(${PROJECT_NAME})
# Build configuration # Build configuration
set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)

View File

@ -51,8 +51,13 @@ RUN --mount=type=cache,target=/ccache \
# Copy the built executable to a regular directory for the final stage # Copy the built executable to a regular directory for the final stage
RUN --mount=type=cache,target=/build \ RUN --mount=type=cache,target=/build \
mkdir -p /output && \ mkdir -p /output && \
if [ -f "/build/${PROJECT}" ]; then \
cp "/build/${PROJECT}" "/output/${PROJECT}"; \
else \
find /build -type f -executable -name "*${PROJECT}*" -exec cp {} /output/${PROJECT} \; || \ find /build -type f -executable -name "*${PROJECT}*" -exec cp {} /output/${PROJECT} \; || \
find /build -type f -executable -exec cp {} /output/${PROJECT} \; find /build -type f -executable -exec cp {} /output/${PROJECT} \; || \
(echo "Error: Could not find executable for ${PROJECT}" && ls -la /build && exit 1); \
fi
# if we're a release build, then run upx on the binary. # if we're a release build, then run upx on the binary.
RUN if [ "${CMAKE_BUILD_TYPE}" = "Release" ]; then \ RUN if [ "${CMAKE_BUILD_TYPE}" = "Release" ]; then \