Test One-line Installation of Robotology MATLAB/Simulink Packages #1777
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: Test One-line Installation of Robotology MATLAB/Simulink Packages | |
on: | |
workflow_dispatch: | |
tags: | |
- v* | |
schedule: | |
# * is a special character in YAML so you have to quote this string | |
# Execute a "nightly" build twice a week 2 AM UTC | |
- cron: '0 2 * * 2,5' | |
jobs: | |
run-matlab-test: | |
name: Install dependencies and run MATLAB tests | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-24.04, macos-13, windows-latest] | |
matlab_version: [R2022a, R2023a, R2024a, latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install MATLAB | |
uses: matlab-actions/setup-matlab@v2 | |
with: | |
release: ${{ matrix.matlab_version }} | |
- name: Install robotology packages | |
uses: matlab-actions/run-command@v2 | |
with: | |
command: | | |
cd scripts | |
install_robotology_packages() | |
# workaround for https://github.com/robotology/robotology-superbuild/issues/64 | |
# and https://github.com/robotology/idyntree/issues/995 | |
- 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 commands | |
uses: matlab-actions/run-command@v2 | |
with: | |
command: | | |
cd scripts | |
robotology_setup | |
pos = iDynTree.Position() | |
vec = yarp.Vector() |