Skip to content

Update matlab-ci.yml #45

Update matlab-ci.yml

Update matlab-ci.yml #45

Workflow file for this run

# This is a basic workflow to help you get started with MATLAB Actions
name: MATLAB Build
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: # Allows you to run this workflow manually from the Actions tab
env:
MW_CONNECTOR_CONNECTION_PROFILES: loopbackHttps
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.platform }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
.buildtool
**/*.mlx
**/*.ipynb
**/*.md
sample_media
README_media
mdOutputs.txt
key: buildtool-cache-${{ matrix.platform }}
- name: Setup MATLAB
uses: davidbuzinski/setup-matlab@main
with:
cache: true
- name: Start display server
if: ${{ matrix.platform == 'ubuntu-latest' }}
run: |
sudo apt-get install xvfb
Xvfb :99 &
echo "DISPLAY=:99" >> $GITHUB_ENV
- name: Produce MD from MLX
uses: matlab-actions/run-build@v2
with:
tasks: markdown jupyter
# Runs a set of commands using the runners shell
- name: Run all tests
continue-on-error: true
uses: matlab-actions/run-build@v2
with:
tasks: test