Skip to content

Commit

Permalink
define BOOST_DIR default value
Browse files Browse the repository at this point in the history
remove cahcaing boost from GHA
  • Loading branch information
meiravgri committed Mar 24, 2024
1 parent 69bd9a1 commit b385533
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 83 deletions.
7 changes: 0 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,6 @@ commands:
working_directory: .install
command: |
./install_boost.sh $BOOST_VERSION
- run:
name: Define BOOST_DIR
shell: /bin/bash -l -eo pipefail
working_directory: .install/boost
command: |
echo 'export BOOST_DIR=$PWD/.install/boost' >> "$BASH_ENV"
echo ${BOOST_DIR}
- run:
name: Build (Search)
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/benchmark-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,11 @@ jobs:
- name: Git Config
run: git config --global --add safe.directory '*'

- name: Restore Boost
id: restore-boost
uses: actions/cache@v3
with:
path: .install/boost
key: boost-${{ env.BOOST_VERSION }}-${{ inputs.container }}-${{ runner.arch }}

- name: Install Boost
if: steps.restore-boost.outputs.cache-hit != 'true'
working-directory: .install
run: ./install_boost.sh ${{ env.BOOST_VERSION }}

- name: Define BOOST_DIR
working-directory: .install/boost
run: echo "BOOST_DIR=$PWD" >> $GITHUB_ENV

- name: Get Redis
uses: actions/checkout@v4
with:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/flow-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,10 @@ jobs:
- name: Setup common
run: .install/common_installations.sh sudo

- name: Restore Boost
id: restore-boost
uses: actions/cache@v3
with:
path: .install/boost
key: boost-${{ env.BOOST_VERSION }}-ubuntu-latest-${{ runner.arch }}

- name: Install Boost
if: steps.restore-boost.outputs.cache-hit != 'true'
working-directory: .install
run: ./install_boost.sh ${{ env.BOOST_VERSION }} sudo

- name: Define BOOST_DIR
working-directory: .install/boost
run: echo "BOOST_DIR=$PWD" >> $GITHUB_ENV

- name: Get Redis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/task-build-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,10 @@ jobs:
- name: install build artifacts req
run: pip install -q -r .install/build_package_requirments.txt

- name: Restore Boost
id: restore-boost
uses: actions/cache@v3
with:
path: .install/boost
key: boost-${{ env.BOOST_VERSION }}-${{ inputs.container || inputs.env }}-${{ runner.arch }}

- name: Install Boost
if: steps.restore-boost.outputs.cache-hit != 'true'
working-directory: .install
run: ./install_boost.sh ${{ env.BOOST_VERSION }} ${{ steps.mode.outputs.mode }}

- name: Define BOOST_DIR
working-directory: .install/boost
run: echo "BOOST_DIR=$PWD" >> $GITHUB_ENV

# Get Redis
- name: Get Redis
uses: actions/checkout@v3
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/task-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,10 @@ jobs:
- name: Setup common
run: .install/common_installations.sh ${{ steps.mode.outputs.mode }}

- name: Restore Boost
id: restore-boost
uses: actions/cache@v3
with:
path: .install/boost
key: boost-${{ env.BOOST_VERSION }}-${{ inputs.container || inputs.env }}-${{ runner.arch }}

- name: Install Boost
if: steps.restore-boost.outputs.cache-hit != 'true'
working-directory: .install
run: ./install_boost.sh ${{ env.BOOST_VERSION }} ${{ steps.mode.outputs.mode }}

- name: Define BOOST_DIR
working-directory: .install/boost
run: echo "BOOST_DIR=$PWD" >> $GITHUB_ENV

- name: Get Redis
if: inputs.get-redis != 'skip getting redis'
uses: actions/checkout@v3
Expand Down
4 changes: 0 additions & 4 deletions .install/install_boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,3 @@ wget https://boostorg.jfrog.io/artifactory/main/release/${VERSION}/source/${BOOS

tar -xzf ${BOOST_NAME}.tar.gz
mv ${BOOST_NAME} ${BOOST_DIR}
#cd ${BOOST_NAME}

# ./bootstrap.sh --prefix=.
# $MODE ./b2 headers --prefix=.
16 changes: 3 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ROOT=.
MK.cmake=1
SRCDIR=.

MACOS_PACKAGES=openssl# boost
MACOS_PACKAGES=openssl

include deps/readies/mk/main

Expand All @@ -32,7 +32,7 @@ make build # compile and link
GCC=1 # build with GCC (default unless Sanitizer)
CLANG=1 # build with CLang
STATIC_LIBSTDCXX=0 # link libstdc++ dynamically (default: 1)
BOOST_DIR= # boost installation path (default: empty)
BOOST_DIR= # boost installation path (default: .install/boost)
make parsers # build parsers code
make clean # remove build artifacts
ALL=1|all # remove entire artifacts directory (all: remove Conan artifacts)
Expand Down Expand Up @@ -237,25 +237,15 @@ CMAKE_FILES+= \
endif

#----------------------------------------------------------------------------------------------
BOOST_DIR ?= $(ROOT)/.install/boost
_CMAKE_FLAGS += -DMODULE_NAME=$(MODULE_NAME) -DBOOST_DIR=$(BOOST_DIR)

ifeq ($(OS),macos)
_CMAKE_FLAGS += -DLIBSSL_DIR=$(openssl_prefix)
_CMAKE_FLAGS += -DCANON_BOOST=on
endif

_CMAKE_FLAGS += $(CMAKE_ARGS) $(CMAKE_STATIC) $(CMAKE_COORD) $(CMAKE_TEST)

#----------------------------------------------------------------------------------------------

# BOOST_INC_PATH.centos:=/usr/include/boost169
# CC_INCLUDES.centos7 += $(BOOST_INC_PATH.centos)
# CC_INCLUDES.centos8 += $(BOOST_INC_PATH.centos)

# CC_INCLUDES.macos += $(BOOST_DIR)/include

#----------------------------------------------------------------------------------------------

include $(MK)/defs

MK_CUSTOM_CLEAN=1
Expand Down
12 changes: 0 additions & 12 deletions src/geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,6 @@ file(GLOB SOURCES "*.cpp")
add_library(redisearch-geometry STATIC ${SOURCES})

# include_directories(${absl_INCLUDE_DIR})
# if(CANON_BOOST)
# message(STATUS "using find_package")
# set(BOOST_ROOT ${BOOST_DIR})
# set(BOOST_INCLUDEDIR ${BOOST_DIR})

# find_package(Boost 1.82.0 PATHS ${BOOST_DIR}/boost)
# include_directories(${BOOST_DIR}/boost)
# if(NOT Boost_FOUND)
# message(FATAL_ERROR "Could not find boost! ${BOOST_ROOT}")
# message(FATAL_ERROR "Could not find boost!")
# endif()
# endif()

if(NOT BOOST_DIR STREQUAL "")
message(STATUS "BOOST_DIR is not empty: ${BOOST_DIR}")
Expand Down

0 comments on commit b385533

Please sign in to comment.