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 matlab GitHub Actions workflow to use conda instead of mamba #1215

Merged
merged 3 commits into from
Oct 28, 2024
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
18 changes: 7 additions & 11 deletions .github/workflows/matlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
channels: conda-forge,robotology
channels: conda-forge

- name: Setup MATLAB
uses: matlab-actions/setup-matlab@v1
Expand All @@ -40,32 +39,29 @@ jobs:
run: |
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
conda config --remove channels defaults
# Compilation related dependencies
mamba install cmake compilers make ninja pkg-config
# Actual dependencies
mamba install eigen libxml2 assimp ipopt irrlicht osqp-eigen glfw
conda install cmake compilers make ninja pkg-config eigen libxml2 assimp ipopt irrlicht osqp-eigen glfw

# Additional dependencies useful only on Linux
- name: Dependencies [Conda/Linux]
if: contains(matrix.os, 'ubuntu')
run: |
# Additional dependencies only useful on Linux
# See https://github.com/robotology/robotology-superbuild/issues/477
mamba install xorg-libx11 xorg-libxrandr freeglut mesa-libgl-cos6-x86_64 mesa-libgl-devel-cos6-x86_64
conda install xorg-libxrandr libgl-devel

# Additional dependencies useful only on Windows
- name: Dependencies [Conda/Windows]
if: contains(matrix.os, 'windows')
run: |
# Additional dependencies only useful on Windows
# See https://github.com/robotology/robotology-superbuild/issues/477
mamba install vs2019_win-64
conda install vs2019_win-64

# Workaround for https://github.com/robotology/idyntree/issues/1109
- name: Dependencies [Conda/macOS]
if: contains(matrix.os, 'macos')
run: |
mamba install libblas=*=*netlib
conda install libblas=*=*netlib

# workaround for https://github.com/robotology/robotology-superbuild/issues/64
# and https://github.com/robotology/idyntree/issues/995
Expand All @@ -77,7 +73,7 @@ jobs:
- name: Print used environment [Conda]
shell: bash -l {0}
run: |
mamba list
conda list
env

- name: Configure [Conda - Linux or macOS]
Expand Down
Loading