Skip to content

Commit

Permalink
using docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
Zichangzhou committed Sep 14, 2024
1 parent 94fb7d1 commit 0dfdeed
Showing 1 changed file with 56 additions and 58 deletions.
114 changes: 56 additions & 58 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,9 @@ jobs:
build:

runs-on: ubuntu-latest
# container: ${{ matrix.container }}
# strategy:
# matrix:
# container: ['ubuntu:20.04', 'ubuntu:22.04', 'ubuntu:24.04']
# cmake-version: [3.18.0, 3.22.0, 3.25.0]
container:
image: zichang1234/raptor:latest

# not sure
env:
CCACHE_BASEDIR: ${{ github.workspace }}
Expand Down Expand Up @@ -160,59 +158,59 @@ jobs:
- name: Debug Branch Name
run: echo ${{ env.BRANCH_NAME }}

- name: Register robotpkg
run: |
sh -c "echo \"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg\" >> /etc/apt/sources.list"
apt-key adv --fetch-keys http://robotpkg.openrobots.org/packages/debian/robotpkg.key
- name: Set and install dependencies
run: |
rm -rf /usr/local/share/boost/1.69.0
export PYTHON3_VERSION=$(python3 -c "import sys; print(str(sys.version_info.major)+str(sys.version_info.minor))")
export APT_DEPENDENCIES="doxygen \
ccache \
curl \
cppcheck \
libomp-dev \
libomp5 \
libboost-system-dev \
libboost-test-dev \
libboost-filesystem-dev \
libboost-program-options-dev \
libeigen3-dev \
liburdfdom-dev \
texlive-font-utils \
libboost-python-dev \
python3-numpy \
python3-matplotlib \
robotpkg-py${PYTHON3_VERSION}-eigenpy \
robotpkg-py${PYTHON3_VERSION}-hpp-fcl \
robotpkg-py${PYTHON3_VERSION}-casadi"
echo "APT Dependencies: $APT_DEPENDENCIES"
apt-get update -qq
DEBIAN_FRONTEND="noninteractive" apt-get install -qq ${APT_DEPENDENCIES}
- name: Install Python Packages
run: |
pip3 install --upgrade pip
pip3 install scipy matplotlib pyyaml torch pybullet==3.2.5 mujoco==2.3.7 glfw==2.6.2 pyopengl==3.1.7 numpy==1.25.2 nanobind pygccxml pyplusplus
- name: Install Pinocchio Dependencies
run: |
bash docker/scripts/install-pinocchio.sh
- name: Install HSL Solver
run: |
bash docker/scripts/install-hsl.sh
- name: Install Ipopt Solver
run: |
bash docker/scripts/install-ipopt.sh
- name: Install OMPL
run: |
bash docker/scripts/install-ompl.sh
# - name: Register robotpkg
# run: |
# sh -c "echo \"deb [arch=amd64] http://robotpkg.openrobots.org/packages/debian/pub $(lsb_release -cs) robotpkg\" >> /etc/apt/sources.list"
# apt-key adv --fetch-keys http://robotpkg.openrobots.org/packages/debian/robotpkg.key

# - name: Set and install dependencies
# run: |
# rm -rf /usr/local/share/boost/1.69.0
# export PYTHON3_VERSION=$(python3 -c "import sys; print(str(sys.version_info.major)+str(sys.version_info.minor))")
# export APT_DEPENDENCIES="doxygen \
# ccache \
# curl \
# cppcheck \
# libomp-dev \
# libomp5 \
# libboost-system-dev \
# libboost-test-dev \
# libboost-filesystem-dev \
# libboost-program-options-dev \
# libeigen3-dev \
# liburdfdom-dev \
# texlive-font-utils \
# libboost-python-dev \
# python3-numpy \
# python3-matplotlib \
# robotpkg-py${PYTHON3_VERSION}-eigenpy \
# robotpkg-py${PYTHON3_VERSION}-hpp-fcl \
# robotpkg-py${PYTHON3_VERSION}-casadi"
# echo "APT Dependencies: $APT_DEPENDENCIES"

# apt-get update -qq
# DEBIAN_FRONTEND="noninteractive" apt-get install -qq ${APT_DEPENDENCIES}

# - name: Install Python Packages
# run: |
# pip3 install --upgrade pip
# pip3 install scipy matplotlib pyyaml torch pybullet==3.2.5 mujoco==2.3.7 glfw==2.6.2 pyopengl==3.1.7 numpy==1.25.2 nanobind pygccxml pyplusplus

# - name: Install Pinocchio Dependencies
# run: |
# bash docker/scripts/install-pinocchio.sh

# - name: Install HSL Solver
# run: |
# bash docker/scripts/install-hsl.sh

# - name: Install Ipopt Solver
# run: |
# bash docker/scripts/install-ipopt.sh

# - name: Install OMPL
# run: |
# bash docker/scripts/install-ompl.sh

- name: Free disk space
run: |
Expand Down

0 comments on commit 0dfdeed

Please sign in to comment.