forked from acampbel/Mass-Spring-Damper
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 941 Bytes
/
matlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start display server
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