Skip to content

revise test_mac.yml

revise test_mac.yml #5

Workflow file for this run

name: Test MATLAB MEX on macOS with Xcode 14.2 and Xcode 15.1
on:
# Trigger the workflow on push or pull request
push:
#pull_request: # DANGEROUS! MUST be disabled for self-hosted runners!
# Trigger the workflow by cron. The default time zone of GitHub Actions is UTC.
schedule:
- cron: '0 2 * * 0'
# Trigger the workflow when it is manually triggered
workflow_dispatch:
jobs:
test:
name: Test MATLAB MEX on macOS
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# See the following for the configurations of macos-12 and macos-13 runners, especially the
# versions of Xcode
# https://github.com/actions/runner-images/blob/macos-13/20240114.1/images/macos/macos-12-Readme.md
# https://github.com/actions/runner-images/blob/macos-13/20240114.1/images/macos/macos-13-Readme.md
os: [macos-13, macos-12]
matlab: [R2023b, R2023a]
oneapi: [2023, 2022, 2021]
steps:
- name: Check out repository
uses: actions/checkout@v4.1.1
with:
submodules: recursive
- name: Install Intel oneAPI
run: bash .github/scripts/install_oneapi_macos.sh ${{ matrix.oneapi }}
- name: Set up MATLAB
uses: matlab-actions/setup-matlab@v2.0.0
with:
release: ${{ matrix.matlab }}
cache: true
- name: Run the test
uses: matlab-actions/run-command@v2.0.0
with:
command: |
ver
cd('test_mac');
test_pow(3)