Update matlab-ci.yml #12
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
# This is a basic workflow to help you get started with MATLAB Actions | |
name: MATLAB Build | |
# Controls when the action will run. | |
on: | |
push: # Runs on push events | |
pull_request: # Runs on pull requests | |
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab | |
jobs: | |
build-toolbox: | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macos-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Start display server | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get install xvfb | |
Xvfb :99 & | |
echo "DISPLAY=:99" >> $GITHUB_ENV | |
# Sets up MATLAB on the GitHub Actions runner | |
- name: Setup MATLAB | |
uses: matlab-actions/setup-matlab@v2 | |
with: | |
cache: true | |
# Runs a set of commands using the runners shell | |
- name: Run toolbox build | |
uses: matlab-actions/run-build@v2 | |
with: | |
tasks: toolbox | |