Skip to content

Commit 567505e

Browse files
committed
ci: use smarter matrix
1 parent 143b6ff commit 567505e

1 file changed

Lines changed: 7 additions & 48 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 7 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jobs:
2121
linux-newer:
2222
# For Matlab >= R2024a
2323
timeout-minutes: 15
24-
runs-on: ubuntu-24.04
24+
runs-on: ubuntu-latest
2525

2626
strategy:
2727
matrix:
28-
release: [R2024a, R2026a]
28+
release: [R2024a, latest]
2929

3030
steps:
3131
- &matlab-install
@@ -47,7 +47,7 @@ jobs:
4747

4848
- &code-issues
4949
name: Check codeIssues
50-
if: ${{ matrix.release >= 'R2024a' || matrix.release == 'latest-including-prerelease' }}
50+
if: ${{ matrix.release >= 'R2024a' || startsWith(matrix.release, 'latest') }}
5151
uses: matlab-actions/run-build@v3
5252
with:
5353
tasks: check
@@ -71,7 +71,7 @@ jobs:
7171

7272
strategy:
7373
matrix:
74-
release: [R2025b, R2026a]
74+
release: [R2025b, latest]
7575

7676
# macOS:
7777
# Matlab >= R2023b compatible with Xcode 15
@@ -99,7 +99,8 @@ jobs:
9999

100100
strategy:
101101
matrix:
102-
release: [R2025b, R2026a]
102+
release: [R2025b, latest]
103+
# R2024b on GHA isn't setup with compilers, but R2025b is on GHA
103104

104105
steps:
105106
- *matlab-install
@@ -110,46 +111,4 @@ jobs:
110111
- *test-exe
111112

112113

113-
# matlab-older:
114-
# # For R2022a < Matlab < R2024a
115-
# needs: linux-newer
116-
117-
# timeout-minutes: 15
118-
# runs-on: ${{ matrix.os }}
119-
120-
# strategy:
121-
# matrix:
122-
# # windows and macos also work, just saving CI resources
123-
# os: [ubuntu-22.04]
124-
# release: [R2023b]
125-
# # R2022a, R2022b, R2023a, R2023b works, saving CI resources
126-
127-
# steps:
128-
# - *matlab-install
129-
# - *mac-fc
130-
131-
# - *checkout
132-
# - *tell-ext
133-
134-
# - *test-main
135-
136-
# just saving CI resources
137-
# matlab-oldest:
138-
# # for Matlab < R2022a
139-
# needs: linux-newer
140-
141-
# timeout-minutes: 15
142-
# runs-on: ${{ matrix.os }}
143-
144-
# strategy:
145-
# matrix:
146-
# os: [ubuntu-latest]
147-
# release: [R2021a]
148-
# # , R2021b works, saving CI resources
149-
150-
# steps:
151-
# - *matlab-install
152-
# - *checkout
153-
# - *tell-ext
154-
155-
# - *test-main
114+
# R2021a, R2022a, R2022b, R2023a, R2023b works, saving CI resources

0 commit comments

Comments
 (0)