-
-
Notifications
You must be signed in to change notification settings - Fork 2
155 lines (118 loc) · 2.88 KB
/
Copy pathci.yml
File metadata and controls
155 lines (118 loc) · 2.88 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
name: ci
on:
push:
paths:
- "**.m"
- "**.h"
- "**.cpp"
- ".github/workflows/ci.yml"
- ".github/workflows/*/action.yml"
- "!scripts/**"
- "!example/**"
# avoid wasted runs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux-newer:
# For Matlab >= R2024a
timeout-minutes: 15
runs-on: ubuntu-24.04
strategy:
matrix:
release: [R2024a, R2026a]
steps:
- &matlab-install
name: Install MATLAB
timeout-minutes: 5
uses: matlab-actions/setup-matlab@v3
with:
release: ${{ matrix.release }}
cache: true
- &checkout
uses: actions/checkout@v7
- &tell-ext
name: Matlab tell External Language Interface versions
uses: matlab-actions/run-command@v3
with:
command: stdlib.doctor()
- &code-issues
name: Check codeIssues
if: ${{ matrix.release >= 'R2024a' || matrix.release == 'latest-including-prerelease' }}
uses: matlab-actions/run-build@v3
with:
tasks: check
# Matlab < R2024a has false positives that would break tests
- &test-main
name: Main Tests
uses: ./.github/workflows/composite-nomex
- &test-exe
name: Exe Tests
uses: ./.github/workflows/composite-exe
env:
LD_PRELOAD: /usr/lib/x86_64-linux-gnu/libstdc++.so.6
macos:
needs: linux-newer
timeout-minutes: 15
runs-on: macos-latest
strategy:
matrix:
release: [R2025b, R2026a]
# macOS:
# Matlab >= R2023b compatible with Xcode 15
# Matlab >= R2024b compatible with Xcode 16
steps:
- *matlab-install
- &mac-fc
name: Fortran FC
if: runner.os == 'macOS'
run: echo "FC=gfortran-15" >> $GITHUB_ENV
- *checkout
- *tell-ext
- *test-main
- *test-exe
windows:
timeout-minutes: 15
runs-on: windows-latest
strategy:
matrix:
release: [R2025b, R2026a]
steps:
- *matlab-install
- *checkout
- *tell-ext
- *test-main
- *test-exe
# matlab-older:
# # For R2022a < Matlab < R2024a
# needs: linux-newer
# timeout-minutes: 15
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# # windows and macos also work, just saving CI resources
# os: [ubuntu-22.04]
# release: [R2023b]
# # R2022a, R2022b, R2023a, R2023b works, saving CI resources
# steps:
# - *matlab-install
# - *mac-fc
# - *checkout
# - *tell-ext
# - *test-main
# just saving CI resources
# matlab-oldest:
# # for Matlab < R2022a
# needs: linux-newer
# timeout-minutes: 15
# runs-on: ${{ matrix.os }}
# strategy:
# matrix:
# os: [ubuntu-latest]
# release: [R2021a]
# # , R2021b works, saving CI resources
# steps:
# - *matlab-install
# - *checkout
# - *tell-ext
# - *test-main