You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
# Action for Installing MATLAB on GitHub-Hosted Runner
1
+
# Action for Setting Up MATLAB on GitHub-Hosted Runner
2
2
3
-
Before you run MATLAB® code and Simulink® models on a [GitHub®-hosted](https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners) runner, first use the [Set Up MATLAB](#set-up-matlab) action. The action installs the specified MATLAB release on a Linux® virtual machine. If you do not specify a release, the action installs the latest release of MATLAB.
3
+
Before you run MATLAB® code and Simulink® models on a [GitHub®-hosted](https://docs.github.com/en/free-pro-team@latest/actions/reference/specifications-for-github-hosted-runners) runner, first use the [Setup MATLAB](#set-up-matlab) action. The action sets up the specified MATLAB release on a Linux® virtual machine. If you do not specify a release, the action sets up the latest release of MATLAB.
4
4
5
-
The **Set Up MATLAB** action is not supported on [self-hosted](https://docs.github.com/en/free-pro-team@latest/actions/hosting-your-own-runners/about-self-hosted-runners) runners. Currently, it is available only for public projects. It does not install transformation products, such as MATLAB Coder™ and MATLAB Compiler™.
5
+
The **Setup MATLAB** action is not supported on [self-hosted](https://docs.github.com/en/free-pro-team@latest/actions/hosting-your-own-runners/about-self-hosted-runners) runners. Currently, it is available only for public projects. It does not set up transformation products, such as MATLAB Coder™ and MATLAB Compiler™.
6
6
7
7
## Usage Examples
8
-
Once you install MATLAB, you can use the runner to execute MATLAB scripts, functions, or statements. You also can use the runner to execute MATLAB and Simulink tests and generate artifacts. To execute code on the runner, include the [Run MATLAB Command](https://github.com/matlab-actions/run-command/) or [Run MATLAB Tests](https://github.com/matlab-actions/run-tests/) actions in your workflow.
8
+
Once you set up MATLAB, you can use the runner to execute MATLAB scripts, functions, or statements. You also can use the runner to execute MATLAB and Simulink tests and generate artifacts. To execute code on the runner, include the [Run MATLAB Command](https://github.com/matlab-actions/run-command/) or [Run MATLAB Tests](https://github.com/matlab-actions/run-tests/) actions in your workflow.
9
9
10
10
### Run MATLAB Script on GitHub-Hosted Runner
11
11
Set up a GitHub-hosted runner to run the commands in a file named `myscript.m` in the root of your repository. To run the script, include the [Run MATLAB Command](https://github.com/matlab-actions/run-command/) action in your workflow.
When you define your workflow in the `.github/workflows` directory of your repository, specify the **Set Up MATLAB** action as `matlab-actions/setup-matlab@v0`. The action accepts an optional input.
54
+
When you define your workflow in the `.github/workflows` directory of your repository, specify the **Setup MATLAB** action as `matlab-actions/setup-matlab@v1`. The action accepts an optional input.
55
55
56
56
| Input | Description |
57
57
|-----------|-------------|
58
-
| `release` | (Optional) MATLAB release to install. You can specify R2020a or a later release. If you do not specify `release`, the action installs the latest release of MATLAB.<br/>**Example**: `R2020a`
58
+
| `release` | (Optional) MATLAB release to set up. You can specify R2020a or a later release. If you do not specify `release`, the action sets up the latest release of MATLAB.<br/>**Example**: `R2021a`
59
59
60
60
## Notes
61
-
When you use the **Set Up MATLAB** action, you execute third-party code that is licensed under separate terms.
61
+
When you use the **Setup MATLAB** action, you execute third-party code that is licensed under separate terms.
62
62
63
63
## See Also
64
64
- [Action for Running MATLAB Commands](https://github.com/matlab-actions/run-command/)
0 commit comments