Skip to content

Commit 0c2239c

Browse files
committed
fix(ci): refresh Metal CMake cache per wheel
Signed-off-by: AlpinDale <alpindale@gmail.com>
1 parent dd349a2 commit 0c2239c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎.github/scripts/build_metal_wheel.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ output_dir="${1:?usage: build_metal_wheel.sh OUTPUT_DIR}"
88
mkdir -p "$output_dir"
99
rm -f "$output_dir"/*.whl
1010

11+
# uv creates a new isolated build environment for every wheel. CMake otherwise
12+
# keeps Torch paths from the previous environment, which uv removes after the
13+
# build. Refresh only CMake's path cache and retain incremental build outputs.
14+
find build -type f -name CMakeCache.txt -delete 2>/dev/null || true
15+
1116
APHRODITE_TARGET_DEVICE=metal \
1217
APHRODITE_REQUIRE_RUST_FRONTEND=1 \
1318
MACOSX_DEPLOYMENT_TARGET="${MACOSX_DEPLOYMENT_TARGET:-14.0}" \

0 commit comments

Comments
 (0)