Skip to content

Commit

Permalink
Switch from mamba to conda in CI and start using libgl-devel to use O…
Browse files Browse the repository at this point in the history
…penGL

* Switch from mamba to conda in CI and start using libgl-devel to use OpenGL

* Update README.md to use conda

---------

Co-authored-by: Silvio Traversaro <[email protected]>
  • Loading branch information
S-Dafarra and traversaro authored Nov 27, 2024
1 parent 59ae301 commit 4d18214
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/conda-forge-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
matrix:
build_type: [Release]
os: [ubuntu-latest, windows-2019, macos-latest]
imgui: [mamba, vendored]
imgui: [conda, vendored]
fail-fast: false

steps:
Expand All @@ -30,24 +30,22 @@ jobs:
shell: bash -l {0}
run: |
# Compilation related dependencies
mamba install cmake compilers make ninja pkg-config
conda install cmake compilers make ninja pkg-config
# Actual dependencies
mamba install glew glfw yarp
conda install glew glfw yarp
- name: Imgui
if: contains(matrix.imgui, 'mamba')
if: contains(matrix.imgui, 'conda')
shell: bash -l {0}
run: |
mamba install imgui
conda install imgui
- name: OpenGL [Linux]
if: contains(matrix.os, 'ubuntu')
shell: bash -l {0}
run: |
# OpenGL is not found on Ubuntu when using conda. Related issue https://github.com/robotology/robotology-superbuild/issues/929
# See https://github.com/robotology/robotology-superbuild/issues/477
# See https://github.com/robotology/robotology-superbuild/pull/1606
mamba install expat freeglut libselinux-cos7-x86_64 xorg-libxau libxcb xorg-libxdamage xorg-libxext xorg-libxfixes xorg-libxxf86vm xorg-libxrandr mesa-libgl-cos7-x86_64 mesa-libgl-devel-cos7-x86_64
# On linux we need to install libgl-devel
conda install libgl-devel
- name: Configure [Linux, macOS]
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ https://github.com/ami-iit/yarp-device-keyboard-joypad/assets/18591940/7717159e-
- ``GLEW``
- [``imgui``](https://github.com/ocornut/imgui) (Will be downloaded automatically if not found)

The dependencies can also be installed via [``mamba``](https://github.com/mamba-org/mamba) using the following command:
The dependencies can also be installed via ``conda``. If you do not have a ``conda`` distribution on your system, we suggest using the minimal [``miniforge``](https://github.com/conda-forge/miniforge) distribution, that uses ``conda-forge`` packages by default.
```bash
mamba install cmake compilers make ninja pkg-config glew glfw yarp imgui
conda install cmake compilers make ninja pkg-config glew glfw yarp imgui
```

## Configuration parameters
Expand Down

0 comments on commit 4d18214

Please sign in to comment.