MATLAB Build #4
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: MATLAB Build | |
# Controls when the action will run. | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get mpm.m via git | |
run: git clone https://github.com/mobeets/mpm.git temp | |
- name: Unpack mpi folder | |
run: mv temp/mpi.m . & mv temp/mpi_config.m . & mv temp/mpi_nls.mat . & mkdir mpi-packages | |
- name: Remove redundant folders | |
run: rm -rf temp | |
- name: Setup MATLAB | |
uses: matlab-actions/setup-matlab@v1 | |
- name: Print current folder structure | |
run: ls | |
- name: Run all tests | |
uses: matlab-actions/run-command@v1 | |
with: | |
command: sorotoki -i --approve; sorotoki -b --approve; y = sorotoki('-t'); |