Update to matlab-actions/setup-matlab@v2
#168
Workflow file for this run
This file contains hidden or 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 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: 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@v1 | |
| with: | |
| command: compile_matlab_bindings_for_precice | |
| - name: Run Solverdummies | |
| shell: bash | |
| run: | | |
| export LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libgfortran.so.5" | |
| matlab -sd "./solverdummy" -batch "addpath('../'); solverdummy precice-config.xml SolverOne;" & matlab -sd "./solverdummy" -batch "addpath('../'); solverdummy precice-config.xml SolverTwo;" |