Skip to content

Commit

Permalink
Fix conda-ci GitHub Action CI by using mambaforge directly (#42)
Browse files Browse the repository at this point in the history
Currently the CI is failing on Linux and Windows with a weird conflict error. This is due to the fact that we are install mamba (from the conda-forge channel) on the top of miniconda3 (that by default install all the packages from the defaults channel). To make an analogy in apt world, this is like installing Debian, and then trying to install packages from the Ubuntu repo: something can go wrong.

To solve this problem, we install [mambaforge](https://github.com/conda-forge/miniforge) (a installer like miniconda3 but already using conda-forge packages) directly, so we always and only use packages from the conda-forge channel. 

Similar to:
* robotology/robotology-superbuild#840
* robotology/robometry#141
* robotology/yarp-devices-ros2#44
* gazebosim/gazebo-classic#3287
  • Loading branch information
traversaro committed Jan 12, 2023
1 parent f4de967 commit 9c2b61d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/conda-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ jobs:

- uses: conda-incubator/setup-miniconda@v2
with:
mamba-version: "*"
channels: conda-forge,robotology
channel-priority: true
miniforge-variant: Mambaforge
miniforge-version: latest

- uses: rlespinasse/github-slug-action@v3.x

Expand Down

0 comments on commit 9c2b61d

Please sign in to comment.