Skip to content

Update CITATION.cff #79

Update CITATION.cff

Update CITATION.cff #79

Workflow file for this run

name: MATLAB tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-matlab-test:
name: Install dependencies and run MATLAB tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
matlab_version: [R2021a, R2021b, R2022a]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v1
with:
release: ${{ matrix.matlab_version }}
- name: Clone mystica
run: |
cd ..
cd ..
git clone https://github.com/ami-iit/mystica.git --branch v2022.06.0
# mystica is cloned in this location to avoid a too long PREFIX (see https://github.com/robotology/robotology-superbuild/pull/1145)
- name: Install mystica
uses: matlab-actions/run-command@v1
with:
command: |
cd ..
cd ..
cd mystica
install('env_name','imorph')
# workaround for https://github.com/robotology/robotology-superbuild/issues/64 and https://github.com/ami-iit/mystica/issues/6
- name: Do not use MATLAB's stdc++ to avoid incompatibilities with other libraries
if: contains(matrix.os, 'ubuntu')
run:
echo "LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6" >> $GITHUB_ENV
- name: Run MATLAB tests
uses: matlab-actions/run-command@v1
with:
command: |
run(fullfile('..','..','mystica','deps','setup'))
run(fullfile('scripts','test_ci'))