From 1a9ddccab118608d2b9b85fe5cc2113a820c851a Mon Sep 17 00:00:00 2001 From: Diego Ferigo Date: Wed, 13 Oct 2021 13:12:14 +0200 Subject: [PATCH] sq --- .github/workflows/conda.yml | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/conda.yml b/.github/workflows/conda.yml index 1df793109..c7ef44752 100644 --- a/.github/workflows/conda.yml +++ b/.github/workflows/conda.yml @@ -50,37 +50,40 @@ jobs: python-version: ${{ matrix.python }} channels: conda-forge,robotology,defaults - - name: Mamba info + - name: "[all] Mamba info" run: mamba info - - name: Mamba list + - name: "[all] Mamba list" run: mamba list - - name: Dependencies + - name: "[all] Dependencies" run: | mamba install -y cmake compilers ninja pkg-config swig pybind11 pytest - mamba install -y mesa-libgl-devel-cos7-x86_64 mamba install -y gym scipy numpy lxml mamba install -c robotology idyntree mamba install -y libode - - name: Ignition Gazebo [stable] + - name: "[ubuntu] Dependencies" + if: contains(matrix.os, 'ubuntu') + run: mamba install -y mesa-libgl-devel-cos7-x86_64 + + - name: "[all|stable] Ignition Gazebo" if: | github.event_name == 'release' || github.ref == 'refs/heads/master' || (github.event_name == 'pull_request' && github.event.pull_request.base.ref == 'master') run: mamba install -y libignition-gazebo6 - - name: Ignition Gazebo [nightly] + - name: "[all|nightly] Ignition Gazebo" if: | (github.event_name == 'push' && github.ref != 'refs/heads/master') || (github.event_name == 'pull_request' && github.event.pull_request.base.ref != 'master') run: mamba install -y libignition-gazebo6 - - name: Mamba list + - name: "[all] Mamba list" run: mamba list - - name: Configure CMake project + - name: "[all] Configure CMake project" run: | cmake \ -S scenario/ \ @@ -90,25 +93,25 @@ jobs: -DSCENARIO_USE_IGNITION:BOOL=ON \ -DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} - - name: Build CMake project + - name: "[all] Build CMake project" run: cmake --build build/ --config ${{ matrix.build_type }} - - name: Install CMake project + - name: "[all] Install CMake project" run: cmake --install build/ - - name: Install Python packages + - name: "[all] Install Python packages" run: | pip install -e scenario/ echo "" pip install -e .[all] - - name: Inspect Python bindings ABI (core) + - name: "[ubuntu] Inspect Python bindings ABI (core)" if: contains(matrix.os, 'ubuntu') run: ldd ${CONDA_PREFIX}/lib/python${{ matrix.python }}/site-packages/scenario/bindings/_core.so - - name: Inspect Python bindings ABI (gazebo) + - name: "[ubuntu] Inspect Python bindings ABI (gazebo)" if: contains(matrix.os, 'ubuntu') run: ldd ${CONDA_PREFIX}/lib/python${{ matrix.python }}/site-packages/scenario/bindings/_gazebo.so - - name: Test + - name: "[all] Test" run: pytest