-
Notifications
You must be signed in to change notification settings - Fork 48
66 lines (54 loc) · 1.76 KB
/
matlab-one-line-install-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Test One-line Installation of Robotology MATLAB/Simulink Packages
on:
workflow_dispatch:
push:
branches:
- master
- 'releases/**'
tags:
- v*
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
# Execute a "nightly" build at 2 AM UTC
- cron: '0 2 * * *'
jobs:
run-matlab-test:
name: Install dependencies and run MATLAB tests
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, macos-latest, windows-latest]
matlab_version: [R2022a, R2022b, R2023a, latest]
exclude:
# R2020* is not supported on Windows on GitHub Actions
- os: windows-latest
matlab_version: R2020b
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()