forked from pantor/frankx
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utilizing docker scripts in github workflows
- Loading branch information
1 parent
c3e66e7
commit 14453e2
Showing
5 changed files
with
24 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,43 +20,14 @@ jobs: | |
- name: Install apt dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get -y install build-essential cmake git libpoco-dev catch2 python3-dev | ||
sudo apt-get -y install build-essential cmake git libpoco-dev python3-dev | ||
- name: Install Eigen3 | ||
- name: Install other dependencies | ||
run: | | ||
git clone https://gitlab.com/libeigen/eigen.git | ||
cd eigen | ||
git checkout 3.4.0 | ||
mkdir build && cd build | ||
cmake .. | ||
sudo make install | ||
- name: Install libfranka | ||
run: | | ||
git clone --recursive https://github.com/frankaemika/libfranka.git | ||
cd libfranka | ||
git checkout ${{ inputs.libfranka-version }} | ||
# Cherry-pick missing imports commit | ||
git config user.email "[email protected]" | ||
git config user.name "John Doe" | ||
if ! git merge-base --is-ancestor f1f46fb HEAD; then git cherry-pick -m 1 f1f46fb; fi | ||
git submodule update | ||
mkdir build && cd build | ||
cmake -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF .. | ||
make -j2 | ||
sudo make install | ||
- name: Install pybind11 | ||
run: | | ||
git clone https://github.com/pybind/pybind11.git | ||
cd pybind11 | ||
git checkout v2.9.1 | ||
mkdir build && cd build | ||
cmake -DPYBIND11_TEST=OFF .. | ||
make -j2 | ||
sudo make install | ||
set -a | ||
. ./dependency_versions | ||
set +a | ||
./docker/common/install-dependencies | ||
- name: Configure & make | ||
run: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,110 +23,21 @@ jobs: | |
with: | ||
submodules: recursive | ||
|
||
- name: Log Python versions | ||
- name: Setting up pip | ||
run: | | ||
echo "Found the following Python versions:" | ||
for PYBIN in /opt/python/*/bin; do | ||
if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then | ||
echo "${PYBIN}" | cut -d / -f 4 | ||
fi | ||
done | ||
./docker/common/manylinux-setup-pip | ||
- name: Install build essentials | ||
- name: Install dependencies | ||
run: | | ||
yum -y install poco-devel* | ||
for PYBIN in /opt/python/*/bin; do | ||
if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then | ||
"${PYBIN}/pip" install cmake setuptools wheel --user | ||
fi | ||
done | ||
ln -f -s $HOME/.local/bin/cmake /usr/bin/cmake | ||
- name: Install Eigen3 | ||
run: | | ||
git clone https://gitlab.com/libeigen/eigen.git | ||
cd eigen | ||
git checkout 3.4.0 | ||
mkdir build && cd build | ||
cmake .. | ||
make install -j2 | ||
- name: Install pybind11 | ||
run: | | ||
git clone https://github.com/pybind/pybind11.git | ||
cd pybind11 | ||
git checkout v2.11.1 | ||
mkdir build && cd build | ||
cmake -DPYBIND11_TEST=OFF .. | ||
make -j2 | ||
make install | ||
- name: Install Catch2 | ||
run: | | ||
git clone https://github.com/catchorg/Catch2.git | ||
cd Catch2 | ||
git checkout v2.13.8 | ||
mkdir build && cd build | ||
cmake -DCATCH_BUILD_TESTING=OFF -DCATCH_ENABLE_WERROR=OFF -DCATCH_INSTALL_DOCS=OFF -DCATCH_INSTALL_HELPERS=OFF .. | ||
make install | ||
- name: Install libfranka | ||
run: | | ||
git clone --recursive https://github.com/frankaemika/libfranka.git | ||
cd libfranka | ||
git checkout ${{ inputs.libfranka-version }} | ||
# Cherry-pick missing imports commit | ||
git config user.email "[email protected]" | ||
git config user.name "John Doe" | ||
if ! git merge-base --is-ancestor f1f46fb HEAD; then git cherry-pick -m 1 f1f46fb; fi | ||
git submodule update | ||
mkdir build && cd build | ||
cmake -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF .. | ||
make -j2 | ||
make install | ||
set -a | ||
. ./dependency_versions | ||
set +a | ||
./docker/common/install-dependencies | ||
- name: Python package | ||
run: | | ||
yum -y install zip | ||
mkdir -p wheels | ||
mkdir -p dist | ||
mkdir -p dist_full | ||
# Compile wheels | ||
for PYBIN in /opt/python/*/bin; do | ||
if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then | ||
"${PYBIN}/pip" wheel . -w wheels/ | ||
fi | ||
done | ||
# Bundle external shared libraries into the wheels | ||
for whl in wheels/*.whl; do | ||
if [[ "$whl" =~ wheels/franky_panda-.*\.whl ]]; then | ||
auditwheel repair "$whl" -w dist_full/ | ||
else | ||
cp "$whl" dist_full/ | ||
fi | ||
done | ||
# Install packages and test | ||
for PYBIN in /opt/python/*/bin/; do | ||
if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then | ||
"${PYBIN}/pip" install franky-panda --no-index -f dist_full | ||
# (cd "$HOME"; "${PYBIN}/nosetests" -w /io/tests) | ||
fi | ||
done | ||
cp dist_full/franky_panda-*.whl dist/ | ||
ls dist | ||
mkdir -p output | ||
libfranka_version=${{ inputs.libfranka-version }} | ||
zip -r "output/libfranka_${libfranka_version//./-}_wheels.zip" dist/ | ||
./docker/common/manylinux-build-wheels | ||
- name: Upload wheels | ||
uses: actions/upload-artifact@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters