mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
chore: Log when preparing macOS SDK or adding safe.directory
option
This commit is contained in:
parent
3ac5739e38
commit
74489dc82d
@ -17,6 +17,7 @@ export SDK_PATH="${SDK_PATH:-${WORKSPACE_PATH}/depends/SDKs}"
|
|||||||
|
|
||||||
# Check if macOS SDK is present, if not, download it
|
# Check if macOS SDK is present, if not, download it
|
||||||
if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then
|
if [[ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]]; then
|
||||||
|
echo "Preparing macOS SDK..."
|
||||||
mkdir -p "${SDK_PATH}"
|
mkdir -p "${SDK_PATH}"
|
||||||
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}"
|
curl -L https://bitcoincore.org/depends-sources/sdks/${XCODE_ARCHIVE}.tar.gz | tar -xz -C "${SDK_PATH}"
|
||||||
fi
|
fi
|
||||||
@ -24,7 +25,8 @@ fi
|
|||||||
# Add safe.directory option only when WORKSPACE_PATH was specified via cmd-line arguments (happens in CI)
|
# Add safe.directory option only when WORKSPACE_PATH was specified via cmd-line arguments (happens in CI)
|
||||||
if [[ -n "${1}" ]]; then
|
if [[ -n "${1}" ]]; then
|
||||||
# Avoid adding duplicates
|
# Avoid adding duplicates
|
||||||
git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || git config --global --add safe.directory "${WORKSPACE_PATH}"
|
git config --global --fixed-value --get safe.directory "${WORKSPACE_PATH}" || \
|
||||||
|
(echo "Adding safe.directory" && git config --global --add safe.directory "${WORKSPACE_PATH}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "${WORKSPACE_PATH}"
|
cd "${WORKSPACE_PATH}"
|
||||||
|
Loading…
Reference in New Issue
Block a user