Skip to content

Update to matlab-actions/setup-matlab@v2 #184

Update to matlab-actions/setup-matlab@v2

Update to matlab-actions/setup-matlab@v2 #184

Workflow file for this run

name: 'Test MATLAB bindings'
on:
push:
branches:
- develop
- main
pull_request:
branches:
- "*"
jobs:
test-solverdummies:
name: Test MATLAB solverdummmies
runs-on: ubuntu-latest
container:
image: precice/precice:nightly
strategy:
fail-fast: true
matrix:
include:
- release: latest
# - release: R2023b
# - release: R2023a
# - release: R2022b
# - release: R2022a
# - release: R2021b
# - release: R2021a # throws an error: https://github.com/precice/matlab-bindings/pull/42
steps:
- name: Install Dependencies
run: |
apt-get -qq update
apt-get -qq install wget
rm -rf /var/lib/apt/lists/*
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.release }}
- name: Check out repository
uses: actions/checkout@v3
- name: Run compilation script
uses: matlab-actions/run-command@v2
with:
command: compile_matlab_bindings_for_precice
#- name: Run Solverdummies
# uses: matlab-actions/run-command@v2
# env:
# LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libgfortran.so.5
# with:
# startup-options: -sd examples/solverdummy
# command: addpath('../..'), solverdummy precice-config.xml SolverOne
# # solverdummy precice-config.xml SolverTwo
# workaround from https://github.com/matlab-actions/run-command/issues/53
- name: Get run-matlab-command
run: |
wget -O /usr/local/bin/run-matlab-command https://ssd.mathworks.com/supportfiles/ci/run-matlab-command/v2/glnxa64/run-matlab-command
chmod +x /usr/local/bin/run-matlab-command
- name: Run Solverdummies
working-directory: examples/solverdummy
env:
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libgfortran.so.5
run: |
run-matlab-command "disp('hello from 1')" & run-matlab-command "disp('hello from 2)"
#run-matlab-command "addpath('../..'), solverdummy precice-config.xml SolverOne" & run-matlab-command "addpath('../..'), solverdummy precice-config.xml SolverTwo"