Skip to content

Commit ecef662

Browse files
committed
250730.235048.PDT revise test_matlab*.yml
1 parent 978d345 commit ecef662

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

.github/workflows/test_matlab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
fail-fast: false
2727

28-
# The matrix is the same as that of compile_mex.yml
28+
# The matrix is the same as that of compile_mex.yml. We intend to test all supported combinations.
2929
matrix:
3030
os: [ubuntu-22.04, ubuntu-latest, macos-13, windows-latest, windows-2025]
3131
matlab: [R2020b, R2021a, R2021b, R2022a, R2022b, R2023a, R2023b, R2024a, R2024b, R2025a, latest]

.github/workflows/test_matlab_linux.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [ubuntu-latest]
24-
matlab: [R2020b, R2021a, R2021b, R2022a, R2022b, R2023a, R2023b, R2024a, R2024b, R2025a, latest]
24+
matlab: [R2020a, latest] # The earliest and latest supported versions of MATLAB
2525

2626
steps:
2727

@@ -31,6 +31,25 @@ jobs:
3131
if: startsWith(matrix.os, 'windows')
3232
run: git config --global http.postBuffer 1048576000 && git config --global core.compression 0
3333

34+
- name: Run `sudo apt update`
35+
if: startsWith(matrix.os, 'ubuntu')
36+
run: sudo apt update # Otherwise, free-disk-space or other actions relying on `apt` may fail
37+
38+
- name: Free disk space
39+
uses: jlumbroso/free-disk-space@main
40+
if: startsWith(matrix.os, 'ubuntu')
41+
with:
42+
# all of these default to true, but feel free to set to "false" if necessary for your workflow
43+
android: true
44+
dotnet: true
45+
haskell: true
46+
large-packages: true
47+
docker-images: true
48+
swap-storage: false # Important, or the runner may be shut down due to memory starvation.
49+
50+
- name: Clone Repository (Latest)
51+
uses: actions/[email protected]
52+
if: github.event.inputs.git-ref == ''
3453
- name: Clone Repository (Latest)
3554
uses: actions/[email protected]
3655
if: github.event.inputs.git-ref == ''

.github/workflows/test_matlab_mac_intel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
strategy:
2121
fail-fast: false
2222
matrix:
23-
os: [macos-12, macos-13]
24-
matlab: [latest]
23+
os: [macos-13]
24+
matlab: [R2020a, latest] # The earliest and latest supported versions of MATLAB
2525

2626
steps:
2727

.github/workflows/test_matlab_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
fail-fast: false
2222
matrix:
2323
os: [windows-latest]
24-
matlab: [latest]
24+
matlab: [R2023a, latest] # The earliest and latest supported versions of MATLAB
2525

2626
steps:
2727

0 commit comments

Comments
 (0)