From 9fceb231683400ed005c9c8a3dd3d801abf2eb3d Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 28 Oct 2024 09:49:20 +0100 Subject: [PATCH 1/3] Cleanup matlab GitHub Actions workflow to use conda instead of mamba --- .github/workflows/matlab.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml index bb6c0cfad9..b5e0440319 100644 --- a/.github/workflows/matlab.yml +++ b/.github/workflows/matlab.yml @@ -25,11 +25,10 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v2 + - uses: conda-incubator/setup-miniconda@v4 with: - miniforge-variant: Mambaforge miniforge-version: latest - channels: conda-forge,robotology + channels: conda-forge - name: Setup MATLAB uses: matlab-actions/setup-matlab@v1 @@ -38,12 +37,7 @@ jobs: - name: Dependencies 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] @@ -51,7 +45,7 @@ jobs: 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 libgl-devel # Additional dependencies useful only on Windows - name: Dependencies [Conda/Windows] @@ -59,13 +53,13 @@ jobs: 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 @@ -77,7 +71,7 @@ jobs: - name: Print used environment [Conda] shell: bash -l {0} run: | - mamba list + conda list env - name: Configure [Conda - Linux or macOS] From 346f35c7c01362277d30e7250682b2d7dbbacbf8 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 28 Oct 2024 09:50:47 +0100 Subject: [PATCH 2/3] Fix setup-miniconda version --- .github/workflows/matlab.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml index b5e0440319..ce087e17a9 100644 --- a/.github/workflows/matlab.yml +++ b/.github/workflows/matlab.yml @@ -25,7 +25,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: conda-incubator/setup-miniconda@v4 + - uses: conda-incubator/setup-miniconda@v3 with: miniforge-version: latest channels: conda-forge From 1702df724768170ce1d91811e98006eb24754bf8 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 28 Oct 2024 10:17:24 +0100 Subject: [PATCH 3/3] Update matlab.yml --- .github/workflows/matlab.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml index ce087e17a9..615c1aea82 100644 --- a/.github/workflows/matlab.yml +++ b/.github/workflows/matlab.yml @@ -37,6 +37,8 @@ jobs: - name: Dependencies run: | + # Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186 + conda config --remove channels defaults conda install cmake compilers make ninja pkg-config eigen libxml2 assimp ipopt irrlicht osqp-eigen glfw # Additional dependencies useful only on Linux @@ -45,7 +47,7 @@ jobs: run: | # Additional dependencies only useful on Linux # See https://github.com/robotology/robotology-superbuild/issues/477 - conda install libgl-devel + conda install xorg-libxrandr libgl-devel # Additional dependencies useful only on Windows - name: Dependencies [Conda/Windows]