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 8s
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 21:37:39 +12:00
parent d7964d3a78
commit 7f937c1090
2 changed files with 26 additions and 2 deletions

View File

@ -1,9 +1,21 @@
#!/bin/bash #!/bin/bash
# build.sh using docker run approach # build.sh using docker run approach
set -euo pipefail
# Get script directory - handle different execution contexts
if [ -n "${BASH_SOURCE[0]}" ]; then
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
else
SCRIPT_DIR="$( cd "$( dirname "$0" )" &> /dev/null && pwd )"
fi
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROJECT="dehydrate" PROJECT="dehydrate"
# Debug output for CI
echo "Build script running from: ${SCRIPT_DIR}"
echo "Current directory: $(pwd)"
echo "CMakeLists.txt exists: $([ -f "${SCRIPT_DIR}/CMakeLists.txt" ] && echo "yes" || echo "no")"
# Create persistent build directory # Create persistent build directory
mkdir -p "${SCRIPT_DIR}/build" mkdir -p "${SCRIPT_DIR}/build"
mkdir -p "${SCRIPT_DIR}/output" mkdir -p "${SCRIPT_DIR}/output"

View File

@ -1,9 +1,21 @@
#!/bin/bash #!/bin/bash
# build.sh using docker run approach # build.sh using docker run approach
set -euo pipefail
# Get script directory - handle different execution contexts
if [ -n "${BASH_SOURCE[0]}" ]; then
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
else
SCRIPT_DIR="$( cd "$( dirname "$0" )" &> /dev/null && pwd )"
fi
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
PROJECT="getpkg" PROJECT="getpkg"
# Debug output for CI
echo "Build script running from: ${SCRIPT_DIR}"
echo "Current directory: $(pwd)"
echo "CMakeLists.txt exists: $([ -f "${SCRIPT_DIR}/CMakeLists.txt" ] && echo "yes" || echo "no")"
# Create persistent build directory # Create persistent build directory
mkdir -p "${SCRIPT_DIR}/build" mkdir -p "${SCRIPT_DIR}/build"
mkdir -p "${SCRIPT_DIR}/output" mkdir -p "${SCRIPT_DIR}/output"