Skip to content

Commit 674cab2

Browse files
committed
try installing gmp
1 parent 3dbc0c5 commit 674cab2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

ci/github-actions/setup.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,16 @@ else
126126
ulimit -a
127127
ulimit -n 4096
128128
ulimit -a
129-
129+
130+
if [[ "${INTEL}" == "false" ]]; then
131+
# Ensure gmp exists for native gems (bigdecimal link step uses -lgmp)
132+
brew install gmp
133+
134+
# Help the portable ruby toolchain find ARM Homebrew libs/headers
135+
export CPPFLAGS="${CPPFLAGS:-} -I/opt/homebrew/include"
136+
export LDFLAGS="${LDFLAGS:-} -L/opt/homebrew/lib"
137+
export PKG_CONFIG_PATH="${PKG_CONFIG_PATH:-}:/opt/homebrew/lib/pkgconfig"
138+
fi
130139
elif [ "${ImageOS}" == "ubuntu22" ]; then
131140
echo "Setting up Ubuntu for unit tests and Rubocop"
132141
# install pipe viewer to throttle printing logs to screen (not a big deal in linux, but it is in osx)

0 commit comments

Comments
 (0)