Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup dependencies installation #596

Merged
merged 5 commits into from
Dec 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 1 addition & 52 deletions .github/workflows/conda-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
# Compilation related dependencies
mamba install cmake compilers make ninja pkg-config
# Actual dependencies
mamba install -c conda-forge gazebo opencv
mamba install -c conda-forge -c robotology yarp gazebo

# Additional dependencies useful only on Linux
- name: Dependencies [Conda/Linux]
Expand All @@ -48,57 +48,6 @@ jobs:
# See https://github.com/robotology/robotology-superbuild/issues/477
mamba install expat-cos7-x86_64 libselinux-cos7-x86_64 libxau-cos7-x86_64 libxcb-cos7-x86_64 libxdamage-cos7-x86_64 libxext-cos7-x86_64 libxfixes-cos7-x86_64 libxxf86vm-cos7-x86_64 mesa-libgl-devel-cos7-x86_64 libxshmfence-cos7-x86_64 libxshmfence-devel-cos7-x86_64

- name: Dependencies (master)
if: |
(github.event_name == 'pull_request' && env.GITHUB_BASE_REF_SLUG == 'master') ||
env.GITHUB_REF_SLUG == 'master'
shell: bash -l {0}
run: |
# Actual dependencies
mamba install -c conda-forge -c robotology yarp

- name: Dependencies (devel) [Conda/Linux&macOS]
if: |
contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu') &&
((github.event_name == 'pull_request' && env.GITHUB_BASE_REF_SLUG != 'master') ||
(github.event_name != 'pull_request' && env.GITHUB_REF_SLUG != 'master'))
shell: bash -l {0}
run: |

# YARP & iDynTree dependencies
mamba install -c conda-forge ace eigen ycm-cmake-modules

#YARP
cd ${GITHUB_WORKSPACE}
git clone https://github.com/robotology/yarp
cd yarp
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
cmake --build . --config ${{ matrix.build_type }}
cmake --install . --config ${{ matrix.build_type }}

- name: Dependencies (devel) [Conda/Windows]
if: |
contains(matrix.os, 'windows') &&
((github.event_name == 'pull_request' && env.GITHUB_BASE_REF_SLUG != 'master') ||
(github.event_name != 'pull_request' && env.GITHUB_REF_SLUG != 'master'))
shell: bash -l {0}
run: |

# YARP & iDynTree dependencies
mamba install -c conda-forge ace eigen ycm-cmake-modules

#YARP
cd ${GITHUB_WORKSPACE}
git clone https://github.com/robotology/yarp
cd yarp
mkdir build
cd build
cmake -G"Visual Studio 16 2019" -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX}/Library -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ..
cmake --build . --config ${{ matrix.build_type }}
cmake --install . --config ${{ matrix.build_type }}

- name: Configure [Linux&macOS]
if: contains(matrix.os, 'macos') || contains(matrix.os, 'ubuntu')
shell: bash -l {0}
Expand Down