Skip to content

Commit

Permalink
add patch to avoid building benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Oct 27, 2023
1 parent 971d90d commit 1944dc4
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
5 changes: 1 addition & 4 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ else
apt install yasm libopenslide-dev -y
dpkg -L libopenslide-dev

# temporarily add a sleep here to slow down the aarch64 workers to allow
# x86_64 cases to try to run instead of being cancelled if the aarch64
# case failed
sleep 10m
git apply ci/omit-benchmarks-build.patch
fi

# First build the C++ lib using CMake via the run script
Expand Down
22 changes: 22 additions & 0 deletions ci/omit-benchmarks-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ab2e17..2a42462 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -138,7 +138,7 @@ set(CUCIM_PACKAGE_NAME cucim) # cucim
################################################################################
add_subdirectory(cpp)
add_subdirectory(gds)
-add_subdirectory(benchmarks)
+# add_subdirectory(benchmarks)
add_subdirectory(examples/cpp)

################################################################################
@@ -155,7 +155,7 @@ configure_file(${CMAKE_CURRENT_LIST_DIR}/examples/cpp/CMakeLists.txt.examples.re
set(INSTALL_TARGETS
${CUCIM_PACKAGE_NAME}
fmt-header-only
- cucim_benchmarks
+ # cucim_benchmarks
)

install(TARGETS ${INSTALL_TARGETS}

0 comments on commit 1944dc4

Please sign in to comment.