Skip to content

Commit 940157e

Browse files
authored
Merge pull request #29 from ray-project/manylinux-env
Build pygloo on manylinux environment.
2 parents b19ff13 + 8ce0747 commit 940157e

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

.github/workflows/manylinux_basic.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: build-wheels
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-wheels:
11+
timeout-minutes: 60
12+
runs-on: ubuntu-latest
13+
container: quay.io/pypa/manylinux2014_x86_64
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: Install bazel
19+
run: |
20+
yum -y install wget
21+
yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel
22+
wget "https://github.com/bazelbuild/bazel/releases/download/5.1.0/bazel-5.1.0-installer-linux-x86_64.sh" -O bazel-5.1.0-installer-linux-x86_64.sh
23+
chmod +x bazel-5.1.0-installer-linux-x86_64.sh
24+
./bazel-5.1.0-installer-linux-x86_64.sh --user
25+
export PATH=$PATH:~/.bazel/bin
26+
export PYTHON_BIN_PATH='/opt/python/cp38-cp38/bin/python'
27+
bazel build //pygloo:all
28+
echo "Built successfully1."
29+
30+
- name: Build wheels
31+
run: |
32+
# bazel build //pygloo:all
33+
echo "Built successfully."
34+
35+
# - name: Archive pygloo-wheel
36+
# uses: actions/upload-artifact@v1
37+
# with:
38+
# name: pygloo_python39_wheel_on_manylinux
39+
# path: dist/

pygloo/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ cmake_external(
1010
env_vars = {"CFLAGS": "-fPIC"},
1111
lib_source = "@libuv//:all",
1212

13-
out_lib_dir = "lib",
13+
out_lib_dir = "lib64",
1414
# We are selecting the resulting static library to be passed in C/C++ provider
1515
# as the result of the build;
1616
static_libraries = ["libuv_a.a"],
@@ -32,7 +32,7 @@ cmake_external(
3232
# Values to be passed as -Dkey=value on the CMake command line;
3333
# here are serving to provide some CMake script configuration options
3434
cache_entries = {
35-
"libuv_LIBDIR": "$EXT_BUILD_DEPS/libuv/lib",
35+
"libuv_LIBDIR": "$EXT_BUILD_DEPS/libuv/lib64",
3636
"libuv_INCLUDE_DIRS": "$EXT_BUILD_DEPS/libuv/include",
3737

3838
"HIREDIS_NESTED_INCLUDE": "off", # 'on' use hiredis/hiredis.h, 'off' use hiredis.h.

0 commit comments

Comments
 (0)