Update README.md #26
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 | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Start display server | |
run: | | |
sudo apt-get install xvfb | |
Xvfb :99 & | |
echo "DISPLAY=:99" >> $GITHUB_ENV | |
- name: Setup MATLAB | |
uses: matlab-actions/setup-matlab@v1 | |
- name: Run MATLAB command | |
uses: matlab-actions/run-command@v1 | |
with: | |
command: | | |
connector.internal.startConnectionProfile("loopbackHttps"); | |
com.mathworks.matlabserver.connector.api.Connector.ensureServiceOn(); | |
export("sample.mlx"); | |
- uses: actions/upload-artifact@v3 | |
with: | |
path: sample.pdf |