Skip to content

Run MATLAB Build on GitHub-Hosted Runner #57

Run MATLAB Build on GitHub-Hosted Runner

Run MATLAB Build on GitHub-Hosted Runner #57

Workflow file for this run

name: Run MATLAB Build on GitHub-Hosted Runner
on:
workflow_dispatch
env:
MLM_LICENSE_TOKEN: ${{ secrets.LICTOKEN }}
jobs:
check_test:
name: Run MATLAB Build & Test
strategy:
matrix:
os: [ubuntu-latest]
release: [latest-including-prerelease]
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install MATLAB
uses: matlab-actions/setup-matlab@v2
with:
products: MATLAB_Compiler
cache: true
release: ${{ matrix.release }}
- name: Run build to check code and run unit tests
uses: matlab-actions/run-build@v2
with:
tasks: check test
# deploy:
# # This job executes only after a successful completion of 'mex-and-unittests' job
# needs: check_test
# name: Generate Deploy Artifacts
# strategy:
# matrix:
# os: [ubuntu-latest, windows-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - name: Check out repository
# uses: actions/checkout@v4
# - name: Install MATLAB
# uses: matlab-actions/setup-matlab@v2
# with:
# products: MATLAB_Compiler
# release: R2024a
# - name: Run build
# uses: matlab-actions/run-build@v2
# with:
# tasks: pcode deploy
# - name: Upload artifact
# uses: actions/upload-artifact@v4
# with:
# name: app-${{ matrix.os }}
# path: ./*standalone*/*timestable*