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
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:
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Reference in New Issue
Block a user