Skip to content

Commit 2cc8bda

Browse files
committed
debug python env on MacOS (4)
1 parent 338527b commit 2cc8bda

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/macos.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ jobs:
9999
CCACHE_COMPRESSLEVEL: 6
100100
CCACHE_MAXSIZE: "500M"
101101
run: |
102+
echo "RUNNER_TOOL_CACHE = $RUNNER_TOOL_CACHE"
103+
python_root="$(find $RUNNER_TOOL_CACHE -maxdepth 3 -type d -path '**/Python/*/x64')"
104+
echo "python_root = $python_root"
102105
export CCACHE_BASEDIR=$GITHUB_WORKSPACE
103106
export CCACHE_DIR=$GITHUB_WORKSPACE/.ccache
104107
ccache -z
@@ -109,6 +112,8 @@ jobs:
109112
-DCMAKE_PREFIX_PATH=$SOFA_ROOT/lib/cmake \
110113
-DCMAKE_BUILD_TYPE=Release \
111114
-DPYTHON_EXECUTABLE=$(which python3.7) \
115+
-DPython_EXECUTABLE=$(which python3.7) \
116+
-DPython_ROOT=$python_root \
112117
.
113118
ninja install
114119
echo ${CCACHE_BASEDIR}

0 commit comments

Comments
 (0)