Update 2 files
Some checks failed
Build-Test-Publish / build (linux/amd64) (push) Failing after 7s
Build-Test-Publish / build (linux/arm64) (push) Failing after 7s
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-29 22:45:36 +12:00
parent 78e41214d7
commit 344d62034c
2 changed files with 18 additions and 0 deletions

View File

@ -27,6 +27,15 @@ COMMAND_TO_RUN="
if [ -n "${GITEA_CONTAINER_NAME:-}" ]; then
echo "We're in a gitea container: ${GITEA_CONTAINER_NAME}"
echo "Checking cmake availability..."
which cmake || echo "cmake not found in PATH"
echo "PATH: $PATH"
echo "Sourcing build environment..."
# Source the standard build environment if available
[ -f /etc/profile ] && source /etc/profile
[ -f ~/.bashrc ] && source ~/.bashrc
# Add common binary paths
export PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
cd "${SCRIPT_DIR}" && ls -la . && ${COMMAND_TO_RUN}
else
echo "Building in new docker container"

View File

@ -25,6 +25,15 @@ COMMAND_TO_RUN="cmake -G Ninja -S . -B ./build \
if [ -n "${GITEA_CONTAINER_NAME:-}" ]; then
echo "We're in a gitea container: ${GITEA_CONTAINER_NAME}"
echo "Checking cmake availability..."
which cmake || echo "cmake not found in PATH"
echo "PATH: $PATH"
echo "Sourcing build environment..."
# Source the standard build environment if available
[ -f /etc/profile ] && source /etc/profile
[ -f ~/.bashrc ] && source ~/.bashrc
# Add common binary paths
export PATH="/usr/local/bin:/usr/bin:/bin:$PATH"
cd "${SCRIPT_DIR}" && ls -la . && ${COMMAND_TO_RUN}
else
echo "Building in new docker container"