@@ -23,110 +23,21 @@ jobs:
23
23
with :
24
24
submodules : recursive
25
25
26
- - name : Log Python versions
26
+ - name : Setting up pip
27
27
run : |
28
- echo "Found the following Python versions:"
29
- for PYBIN in /opt/python/*/bin; do
30
- if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then
31
- echo "${PYBIN}" | cut -d / -f 4
32
- fi
33
- done
28
+ ./docker/common/manylinux-setup-pip
34
29
35
- - name : Install build essentials
30
+ - name : Install dependencies
36
31
run : |
37
- yum -y install poco-devel*
38
-
39
- for PYBIN in /opt/python/*/bin; do
40
- if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then
41
- "${PYBIN}/pip" install cmake setuptools wheel --user
42
- fi
43
- done
44
-
45
- ln -f -s $HOME/.local/bin/cmake /usr/bin/cmake
46
-
47
- - name : Install Eigen3
48
- run : |
49
- git clone https://gitlab.com/libeigen/eigen.git
50
- cd eigen
51
- git checkout 3.4.0
52
- mkdir build && cd build
53
- cmake ..
54
- make install -j2
55
-
56
- - name : Install pybind11
57
- run : |
58
- git clone https://github.com/pybind/pybind11.git
59
- cd pybind11
60
- git checkout v2.11.1
61
- mkdir build && cd build
62
- cmake -DPYBIND11_TEST=OFF ..
63
- make -j2
64
- make install
65
-
66
- - name : Install Catch2
67
- run : |
68
- git clone https://github.com/catchorg/Catch2.git
69
- cd Catch2
70
- git checkout v2.13.8
71
- mkdir build && cd build
72
- cmake -DCATCH_BUILD_TESTING=OFF -DCATCH_ENABLE_WERROR=OFF -DCATCH_INSTALL_DOCS=OFF -DCATCH_INSTALL_HELPERS=OFF ..
73
- make install
74
-
75
- - name : Install libfranka
76
- run : |
77
- git clone --recursive https://github.com/frankaemika/libfranka.git
78
- cd libfranka
79
- git checkout ${{ inputs.libfranka-version }}
80
-
81
- # Cherry-pick missing imports commit
82
- git config user.email "john.doe@example.com"
83
- git config user.name "John Doe"
84
- if ! git merge-base --is-ancestor f1f46fb HEAD; then git cherry-pick -m 1 f1f46fb; fi
85
-
86
- git submodule update
87
- mkdir build && cd build
88
- cmake -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF ..
89
- make -j2
90
- make install
32
+ set -a
33
+ . ./dependency_versions
34
+ set +a
35
+ ./docker/common/install-dependencies
91
36
92
37
- name : Python package
93
38
run : |
94
39
yum -y install zip
95
- mkdir -p wheels
96
- mkdir -p dist
97
- mkdir -p dist_full
98
-
99
- # Compile wheels
100
- for PYBIN in /opt/python/*/bin; do
101
- if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then
102
- "${PYBIN}/pip" wheel . -w wheels/
103
- fi
104
- done
105
-
106
- # Bundle external shared libraries into the wheels
107
- for whl in wheels/*.whl; do
108
- if [[ "$whl" =~ wheels/franky_panda-.*\.whl ]]; then
109
- auditwheel repair "$whl" -w dist_full/
110
- else
111
- cp "$whl" dist_full/
112
- fi
113
- done
114
-
115
- # Install packages and test
116
- for PYBIN in /opt/python/*/bin/; do
117
- if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then
118
- "${PYBIN}/pip" install franky-panda --no-index -f dist_full
119
- # (cd "$HOME"; "${PYBIN}/nosetests" -w /io/tests)
120
- fi
121
- done
122
-
123
- cp dist_full/franky_panda-*.whl dist/
124
-
125
- ls dist
126
-
127
- mkdir -p output
128
- libfranka_version=${{ inputs.libfranka-version }}
129
- zip -r "output/libfranka_${libfranka_version//./-}_wheels.zip" dist/
40
+ ./docker/common/manylinux-build-wheels
130
41
131
42
- name : Upload wheels
132
43
uses : actions/upload-artifact@v3
0 commit comments