Skip to content

Actions: Migrate to newer versions of macos #341

Actions: Migrate to newer versions of macos

Actions: Migrate to newer versions of macos #341

name: MHKiT-MATLAB Code Compatibility Test
on:
push:
branches: [master, develop]
pull_request:
branches: [master, develop]
jobs:
main:
strategy:
fail-fast: false
matrix:
# os: [macos-13, ubuntu-latest, windows-latest]
os: ["ubuntu-22.04"]
matlab-version: [R2022b, R2023a, R2023b, R2024a, R2024b, R2025a, latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check out MHKiT-MATLAB
uses: actions/checkout@v4
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.matlab-version }}
- name: Build file to run code compatability report
shell: bash
run: echo "version,
addpath(genpath('mhkit')),
results = runCodeCompatibilityReport()" >> run.m
- name: Echo runner for code compatibility report
shell: bash
run: cat run.m
- name: Run code compatibility report
uses: matlab-actions/run-command@v2
with:
command: run
startup-options: -noFigureWindows