@@ -34,25 +34,33 @@ jobs:
3434# macOS >= R2023b to be compatible with Xcode version on Github Actions runner
3535
3636 steps :
37- - uses : actions/checkout@v4
37+ - &checkout
38+ uses : actions/checkout@v4
3839
39- - uses : ./.github/workflows/composite-install-matlab
40+ - &matlab-install
41+ uses : ./.github/workflows/composite-install-matlab
4042
41- - name : Fortran FC
43+ - &mac-fc
44+ name : Fortran FC
4245 if : runner.os == 'macOS'
4346 run : echo "FC=gfortran-14" >> $GITHUB_ENV
4447
45- - name : Matlab tell External Language Interface versions
48+ - &tell-ext
49+ name : Matlab tell External Language Interface versions
4650 uses : matlab-actions/run-command@v2
4751 with :
4852 command : license('inuse'), stdlib.platform_tell()
4953
50- - name : Check codeIssues
54+ - &code-issues
55+ name : Check codeIssues
56+ if : ${{ matrix.release >= 'R2023a' }}
5157 uses : matlab-actions/run-build@v2
5258 with :
5359 tasks : check
60+ # R2022b has false positives that would break tests
5461
55- - name : Main Tests
62+ - &test-main
63+ name : Main Tests
5664 uses : ./.github/workflows/composite-nomex
5765
5866
@@ -69,28 +77,13 @@ jobs:
6977 release : [R2022a, R2022b, R2023a, R2023b]
7078
7179 steps :
72- - uses : actions/checkout@v4
73-
74- - uses : ./.github/workflows/composite-install-matlab
80+ - *checkout
81+ - *matlab-install
82+ - *mac-fc
83+ - *tell-ext
7584
76- - name : Fortran FC
77- if : runner.os == 'macOS'
78- run : echo "FC=gfortran-14" >> $GITHUB_ENV
79-
80- - name : Matlab tell External Language Interface versions
81- uses : matlab-actions/run-command@v2
82- with :
83- command : license('inuse'), stdlib.platform_tell()
84-
85- - name : Check codeIssues
86- if : ${{ matrix.release >= 'R2023a' }}
87- uses : matlab-actions/run-build@v2
88- with :
89- tasks : check
90- # R2022b has false positives that would break tests
91-
92- - name : Main Tests
93- uses : ./.github/workflows/composite-nomex
85+ - *code-issues
86+ - *test-main
9487
9588
9689 matlab-less-than-R2022a :
@@ -107,14 +100,8 @@ jobs:
107100 release : [R2021a, R2021b]
108101
109102 steps :
110- - uses : actions/ checkout@v4
111-
112- - uses : ./.github/workflows/composite-install-matlab
103+ - * checkout
104+ - *matlab-install
105+ - *tell-ext
113106
114- - name : Matlab tell External Language Interface versions
115- uses : matlab-actions/run-command@v2
116- with :
117- command : license('inuse'), stdlib.platform_tell()
118-
119- - name : Main Tests
120- uses : ./.github/workflows/composite-nomex
107+ - *test-main
0 commit comments