build(deps): bump ros-industrial/industrial_ci from 9f963f67ebb889792175776c5ee00134d7bb569b to 3ed9846c96ed1e0bb36193e8e250632eaac980d0 #1034
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI - OSX/Linux via Conda | |
on: [push,pull_request] | |
jobs: | |
pinocchio-conda: | |
name: Pinocchio on ${{ matrix.os }} in ${{ matrix.build_type }} mode with Conda | |
runs-on: ${{ matrix.os }} | |
env: | |
CCACHE_DIR: ${{ matrix.CCACHE_DIR }} | |
BUILD_ADVANCED_TESTING: ${{ matrix.BUILD_ADVANCED_TESTING }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-latest", "macos-latest"] | |
build_type: [Release, Debug] | |
include: | |
- os: ubuntu-latest | |
CCACHE_DIR: /home/runner/.ccache | |
BUILD_ADVANCED_TESTING: OFF | |
- os: macos-latest | |
CCACHE_DIR: /Users/runner/.ccache | |
BUILD_ADVANCED_TESTING: ON | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions/cache@v3 | |
with: | |
path: ${{ env.CCACHE_DIR }} | |
key: ccache-conda-${{ matrix.os }}-${{ matrix.build_type }} | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: pinocchio | |
auto-update-conda: true | |
environment-file: .github/workflows/conda/conda-env.yml | |
python-version: 3.8 | |
- name: Install cmake and update conda | |
shell: bash -l {0} | |
run: | | |
conda activate pinocchio | |
conda install cmake ccache llvm-openmp compilers=1.4.2 -c conda-forge | |
conda list | |
- name: Build Pinocchio | |
shell: bash -l {0} | |
run: | | |
conda activate pinocchio | |
echo $CONDA_PREFIX | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DBUILD_WITH_COLLISION_SUPPORT=ON -DBUILD_ADVANCED_TESTING=${{ env.BUILD_ADVANCED_TESTING }} -DBUILD_WITH_CASADI_SUPPORT=OFF -DPYTHON_EXECUTABLE=$(which python3) -DBUILD_WITH_OPENMP_SUPPORT=ON -DINSTALL_DOCUMENTATION=ON -DOpenMP_ROOT=$CONDA_PREFIX | |
make | |
make build_tests | |
CTEST_OUTPUT_ON_FAILURE=1 make test | |
make install | |
- name: Uninstall Pinocchio | |
shell: bash -l {0} | |
run: | | |
cd build | |
make uninstall |