Skip to content

Commit

Permalink
[Cylon] Fix CI command
Browse files Browse the repository at this point in the history
Signed-off-by: Arup Sarker <[email protected]>
  • Loading branch information
arupcsedu committed Jun 8, 2024
1 parent 61d70f1 commit 2d2adb7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Installing UCX
run: wget https://github.com/openucx/ucx/releases/download/v1.13.1/ucx-1.13.1.tar.gz -P $HOME/ucx && (cd $HOME/ucx && tar xzf ucx-1.13.1.tar.gz) && (cd $HOME/ucx/ucx-1.13.1 && ./contrib/configure-release --prefix=$PWD/install --with-go=no && make -j8 install)
- name: Build and test
run: python3 -m venv ENV && ./build.sh -pyenv $(pwd)/ENV -bpath $(pwd)/build --python_with_pyarrow --test --pytest --cmake-flags "-DCYLON_UCX=ON -DUCX_LIBDIR=$HOME/ucx/ucx-1.13.1/install/lib -DUCX_INCLUDEDIR=$HOME/ucx/ucx-1.13.1/install/include"
run: python3 -m venv ENV && ./build.sh -pyenv $(pwd)/ENV -bpath $(pwd)/build --cpp --test --python --pytest --cmake-flags "-DCYLON_UCX=ON -DUCX_LIBDIR=$HOME/ucx/ucx-1.13.1/install/lib -DUCX_INCLUDEDIR=$HOME/ucx/ucx-1.13.1/install/include"
- name: Build java
run: ./build.sh -pyenv $(pwd)/ENV -bpath $(pwd)/build --java

2 changes: 1 addition & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Remove link for preventing an error
run: rm -f /usr/local/bin/2to3
- name: Install dependencies
run: brew install re2 automake boost brotli c-ares ccache flatbuffers grpc llvm lz4 minio ninja [email protected] protobuf rapidjson snappy thrift wget zstd
run: brew install re2 automake boost brotli c-ares ccache flatbuffers grpc llvm lz4 minio ninja [email protected] protobuf rapidjson snappy thrift wget zstd miniconda

- uses: conda-incubator/setup-miniconda@v2
with:
Expand Down
15 changes: 8 additions & 7 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,13 +218,14 @@ def build_cpp():
verb = '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON' if args.verbose else ''
clean = '--clean-first' if args.clean else ''

pyarrow_location = os.path.dirname(pa.__file__)
conda_prefix = check_conda_prefix()
if not os.path.exists(f"{conda_prefix}/lib/libarrow_python.so"):
sym_generator = f"ln -s {pyarrow_location}/libarrow_python.so {conda_prefix}/lib/libarrow_python.so"
logger.info(f"Generate Symbolic link: {sym_generator}")
res = subprocess.call(sym_generator, cwd=BUILD_DIR, shell=True)
check_status(res, "Generate Symbolic link")
if OS_NAME == 'Linux':
pyarrow_location = os.path.dirname(pa.__file__)
conda_prefix = check_conda_prefix()
if not os.path.exists(f"{conda_prefix}/lib/libarrow_python.so"):
sym_generator = f"ln -s {pyarrow_location}/libarrow_python.so {conda_prefix}/lib/libarrow_python.so"
logger.info(f"Generate Symbolic link: {sym_generator}")
res = subprocess.call(sym_generator, cwd=BUILD_DIR, shell=True)
check_status(res, "Generate Symbolic link")


os.environ['CC']=f"{conda_prefix}/bin/mpicc"
Expand Down

0 comments on commit 2d2adb7

Please sign in to comment.