Skip to content

Commit

Permalink
Temp. hack to not run tests in build
Browse files Browse the repository at this point in the history
  • Loading branch information
stemann committed Dec 18, 2024
1 parent a1f7c8d commit a15ae27
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions M/MLX/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ fi
cd $WORKSPACE/srcdir/mlx
sed -i -e 's/doctest_discover_tests(tests)//' tests/CMakeLists.txt
sed -i -e 's/add_test(NAME tests COMMAND tests)//' tests/CMakeLists.txt
CMAKE_EXTRA_OPTIONS=()
if [[ "$target" == x86_64-apple-darwin* ]]; then
CMAKE_EXTRA_OPTIONS+=("-DMLX_ENABLE_X64_MAC=ON")
Expand Down Expand Up @@ -66,6 +69,13 @@ if [[ "$target" != aarch64-apple-darwin* ]]; then
cmake --build build --parallel $nproc
cmake --install build
cmake --install build --component headers
cd build/examples/cpp
find . -type f -perm 755 -exec install -D -m 755 -v {} $bindir/mlx/examples/{} \;
cd -
cd build/tests
find . -type f -perm 755 -exec install -D -m 755 -v {} $bindir/mlx/{} \;
cd -
else
cd $WORKSPACE/srcdir
unzip -d mlx-$target mlx-$target.whl
Expand Down

0 comments on commit a15ae27

Please sign in to comment.