Skip to content

Commit

Permalink
suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
UdjinM6 committed Dec 15, 2024
1 parent 1ed017c commit e942bc4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
19 changes: 11 additions & 8 deletions ci/dash/setup-sdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ XCODE_RELEASE="${XCODE_RELEASE:-15A240d}"
XCODE_ARCHIVE="Xcode-${XCODE_VERSION}-${XCODE_RELEASE}-extracted-SDK-with-libcxx-headers"
XCODE_AR_PATH="${SDK_SRCS}/${XCODE_ARCHIVE}.tar.gz"

mkdir -p "${SDK_PATH}" "${SDK_SRCS}"
if [ ! -f "${XCODE_AR_PATH}" ]; then
echo "Downloading macOS SDK..."
curl --location --fail "${SDK_URL}/${XCODE_ARCHIVE}.tar.gz" -o "${XCODE_AR_PATH}"
fi
if [ -f "${XCODE_AR_PATH}" ] && [ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]; then
echo "Extracting macOS SDK..."
tar -C "${SDK_PATH}" -xf "${XCODE_AR_PATH}"
if [ ! -d "${SDK_PATH}/${XCODE_ARCHIVE}" ]; then
if [ ! -f "${XCODE_AR_PATH}" ]; then
echo "Downloading macOS SDK..."
mkdir -p "${SDK_SRCS}"
curl --location --fail "${SDK_URL}/${XCODE_ARCHIVE}.tar.gz" -o "${XCODE_AR_PATH}"
fi
if [ -f "${XCODE_AR_PATH}" ]; then
echo "Extracting macOS SDK..."
mkdir -p "${SDK_PATH}"
tar -C "${SDK_PATH}" -xf "${XCODE_AR_PATH}"
fi
fi
2 changes: 1 addition & 1 deletion contrib/containers/guix/scripts/guix-start
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fi
export SDK_PATH="${SDK_PATH:-${WORKSPACE_PATH}/depends/SDKs}"
export SDK_SRCS="${SDK_PATH:-${WORKSPACE_PATH}/depends/sdk-sources}"

setup-sdk
./ci/dash/setup-sdk.sh

# Add safe.directory option only when WORKSPACE_PATH was specified via cmd-line arguments (happens in CI)
if [[ -n "${1}" ]]; then
Expand Down

0 comments on commit e942bc4

Please sign in to comment.