Skip to content

Commit f1cacb7

Browse files
committed
ci: consolidate
1 parent c189b09 commit f1cacb7

File tree

3 files changed

+37
-74
lines changed

3 files changed

+37
-74
lines changed

.github/workflows/ci-nojvm.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ concurrency:
1919
jobs:
2020

2121
matlab-at-least-r2024a:
22-
timeout-minutes: 15
22+
timeout-minutes: &timeout 15
2323
runs-on: ${{ matrix.os }}
2424

25-
name: ${{ matrix.release }}-${{ matrix.os }}
25+
name: &job-name ${{ matrix.release }}-${{ matrix.os }}
2626

2727
strategy:
2828
matrix:
@@ -33,17 +33,21 @@ jobs:
3333
# macOS >= R2023b to be compatible with Xcode version on Github Actions runner
3434

3535
steps:
36-
- &checkout
37-
uses: actions/checkout@v4
38-
3936
- &matlab-install
40-
uses: ./.github/workflows/composite-install-matlab
37+
name: Install MATLAB
38+
uses: matlab-actions/setup-matlab@v2
39+
with:
40+
release: ${{ matrix.release }}
41+
cache: true
4142

4243
- &mac-fc
4344
name: Fortran FC
4445
if: runner.os == 'macOS'
4546
run: echo "FC=gfortran-14" >> $GITHUB_ENV
4647

48+
- &checkout
49+
uses: actions/checkout@v4
50+
4751
- &tell-ext
4852
name: Matlab tell External Language Interface versions
4953
uses: matlab-actions/run-command@v2
@@ -65,32 +69,31 @@ jobs:
6569

6670
matlab:
6771
needs: matlab-at-least-r2024a
68-
timeout-minutes: 15
72+
timeout-minutes: *timeout
6973
runs-on: ${{ matrix.os }}
7074

71-
name: ${{ matrix.release }}-${{ matrix.os }}
75+
name: *job-name
7276

7377
strategy:
7478
matrix:
7579
os: [ubuntu-22.04, windows-latest]
7680
release: [R2022a, R2022b, R2023a, R2023b]
7781

7882
steps:
79-
- *checkout
8083
- *matlab-install
8184
- *mac-fc
85+
- *checkout
8286
- *tell-ext
8387

84-
- *code-issues
8588
- *test-main
8689

8790

8891
matlab-less-than-R2022a:
8992
needs: matlab-at-least-r2024a
9093

91-
name: ${{ matrix.release }}-${{ matrix.os }}
94+
name: *job-name
9295

93-
timeout-minutes: 15
96+
timeout-minutes: *timeout
9497
runs-on: ${{ matrix.os }}
9598

9699
strategy:
@@ -99,8 +102,30 @@ jobs:
99102
release: [R2021a, R2021b]
100103

101104
steps:
105+
- *matlab-install
102106
- *checkout
107+
- *tell-ext
108+
109+
- *test-main
110+
111+
112+
NoJVM:
113+
timeout-minutes: *timeout
114+
115+
name: *job-name
116+
117+
strategy:
118+
matrix:
119+
os: [ubuntu-22.04, macos-latest, windows-latest]
120+
release: [R2022b, R2025a]
121+
startup-options: ["-nojvm"]
122+
123+
runs-on: ${{ matrix.os }}
124+
125+
steps:
103126
- *matlab-install
127+
- *checkout
128+
- *mac-fc
104129
- *tell-ext
105130

106131
- *test-main

.github/workflows/composite-install-matlab/action.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)