-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.33 KB
/
pow.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
35
36
37
38
39
40
41
42
43
44
45
46
name: Test MATLAB MEX on macOS with Xcode 15
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-13 runners, especially the versions of Xcode
# https://github.com/actions/runner-images/blob/macos-13/20240114.1/images/macos/macos-13-Readme.md
os: [macos-13]
matlab: [R2024a, R2023b, R2023a]
oneapi: [2023, 2022]
steps:
- name: Check out repository
uses: actions/checkout@v4.1.2
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.1.2
with:
release: ${{ matrix.matlab }}
cache: true
- name: Run the test
uses: matlab-actions/run-command@v2.1.1
with:
command: |
ver
test_pow(3)