Skip to content

Commit 3dbc0c5

Browse files
committed
more debugging
1 parent a742075 commit 3dbc0c5

File tree

2 files changed

+27
-36
lines changed

2 files changed

+27
-36
lines changed

ci/github-actions/print_logs.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,13 @@ do
3939
# Limit the rate of printing the log (with pv)
4040
cat $F | pv -q -L 3k
4141
echo
42-
done
42+
done
43+
44+
LOG="/Users/runner/work/OpenStudio-server/OpenStudio-server/gems/extensions/arm64-darwin-23/3.2.0-static/bigdecimal-4.0.1/mkmf.log"
45+
if [ -f "$LOG" ]; then
46+
echo "===== bigdecimal mkmf.log ====="
47+
cat "$LOG"
48+
echo "===== end mkmf.log ====="
49+
else
50+
echo "mkmf.log not found at $LOG"
51+
fi

ci/github-actions/setup.sh

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,41 +2,6 @@
22
set -euo pipefail
33
echo "The build architecture is ${ImageOS}"
44

5-
echo "================ TOOLCHAIN DIAGNOSTICS (BEGIN) ================"
6-
7-
echo "ImageOS=${ImageOS}"
8-
echo "INTEL=${INTEL}"
9-
echo "RUNNER_ARCH=${RUNNER_ARCH:-<unset>}"
10-
echo "uname -m: $(uname -m)"
11-
echo
12-
13-
echo "--- xcode-select ---"
14-
xcode-select -p || echo "xcode-select -p FAILED"
15-
16-
echo "--- available Xcodes ---"
17-
ls -d /Applications/Xcode*.app 2>/dev/null || echo "No Xcode apps found in /Applications"
18-
19-
echo "--- DEVELOPER_DIR ---"
20-
echo "DEVELOPER_DIR=${DEVELOPER_DIR:-<unset>}"
21-
22-
echo "--- clang ---"
23-
clang --version || echo "clang not found or failed"
24-
25-
echo "--- xcrun sdk path ---"
26-
xcrun --sdk macosx --show-sdk-path || echo "xcrun failed"
27-
28-
echo "--- cc ---"
29-
which cc || echo "cc not found"
30-
cc --version || echo "cc failed"
31-
32-
echo "--- make ---"
33-
which make || echo "make not found"
34-
make --version || echo "make failed"
35-
36-
echo "================ TOOLCHAIN DIAGNOSTICS (END) =================="
37-
echo
38-
39-
405
# macOS 15 runner setup (arm64 host). We support both:
416
# - INTEL=true => x86_64 portable Ruby (Rosetta) + x86_64 Homebrew (/usr/local)
427
# - INTEL=false => arm64 portable Ruby (native) + arm64 Homebrew (/opt/homebrew)
@@ -56,6 +21,23 @@ else
5621
# sudo rvm implode --force # rvm PATH rewriting interferes with portable Ruby.
5722
if [ "${ImageOS}" == "macos15" ]; then
5823

24+
# ---- Make sure Xcode toolchain is actually usable for building native gems ----
25+
echo "---- Xcode sanity ----"
26+
sudo xcode-select -s /Applications/Xcode_16.4.app/Contents/Developer || true
27+
sudo xcodebuild -license accept || true
28+
sudo xcodebuild -runFirstLaunch || true
29+
30+
export SDKROOT="$(xcrun --sdk macosx --show-sdk-path)"
31+
export CC=clang
32+
export CXX=clang++
33+
# Pin this to something reasonable for Ruby 3.2 on GH runners
34+
export MACOSX_DEPLOYMENT_TARGET=14.0
35+
36+
echo "SDKROOT=$SDKROOT"
37+
echo "MACOSX_DEPLOYMENT_TARGET=$MACOSX_DEPLOYMENT_TARGET"
38+
echo "CC=$(which $CC) ; $CC --version | head -n 1"
39+
40+
5941
brew update > $GITHUB_WORKSPACE/spec/files/logs/brew-update.log
6042
brew install pv tree coreutils shared-mime-info
6143

0 commit comments

Comments
 (0)