Skip to content

Commit 39b8d02

Browse files
committed
ci: break tasks into steps
1 parent 1e2c7bd commit 39b8d02

File tree

5 files changed

+50
-26
lines changed

5 files changed

+50
-26
lines changed

.github/workflows/ci-nojvm.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@ jobs:
3939
if: runner.os == 'macOS'
4040
run: echo "FC=gfortran-14" >> $GITHUB_ENV
4141

42-
- uses: ./.github/workflows/composite-buildtool
42+
- name: No Java, no Mex tests
43+
uses: ./.github/workflows/composite-nomex
44+
45+
- name: No Java, with MEX tests
46+
uses: ./.github/workflows/composite-mex

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,11 @@ jobs:
5353
if: runner.os == 'macOS'
5454
run: echo "FC=gfortran-14" >> $GITHUB_ENV
5555

56-
- uses: ./.github/workflows/composite-buildtool
56+
- name: Check CodeIssues
57+
uses: ./.github/workflows/composite-check
58+
59+
- name: Non-MEX tests
60+
uses: ./.github/workflows/composite-nomex
61+
62+
- name: MEX tests
63+
uses: ./.github/workflows/composite-mex
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "matlab-check"
2+
3+
runs:
4+
5+
using: "composite"
6+
7+
steps:
8+
9+
- name: Check task
10+
if: ${{ matrix.release >= 'R2024a' || startsWith(matrix.release, 'latest') }}
11+
uses: matlab-actions/run-build@v2
12+
with:
13+
startup-options: ${{ matrix.startup-options }}
14+
tasks: check
15+
16+
- name: Upload CodeIssues
17+
if: failure()
18+
uses: actions/upload-artifact@v4
19+
with:
20+
name: ${{ matrix.release }}-${{ runner.os }}-codeissues
21+
path: CodeIssues.sarif
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: "matlab-mex"
2+
3+
runs:
4+
5+
using: "composite"
6+
7+
steps:
8+
9+
- name: Mex Test
10+
if: ${{ matrix.release >= 'R2023a' || startsWith(matrix.release, 'latest') }}
11+
uses: matlab-actions/run-build@v2
12+
with:
13+
startup-options: ${{ matrix.startup-options }} -logfile ${{ matrix.release }}-${{ runner.os }}-test.log
14+
tasks: mex test

.github/workflows/composite-buildtool/action.yml renamed to .github/workflows/composite-nomex/action.yml

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,18 @@
1-
name: "matlab-buildtool"
1+
name: "matlab-nomex"
22

33
runs:
44

55
using: "composite"
66

77
steps:
88

9-
- name: Check task
10-
if: ${{ matrix.release >= 'R2024a' || startsWith(matrix.release, 'latest') }}
11-
uses: matlab-actions/run-build@v2
12-
with:
13-
startup-options: ${{ matrix.startup-options }}
14-
tasks: check
15-
16-
- name: Upload CodeIssues
17-
if: failure()
18-
uses: actions/upload-artifact@v4
19-
with:
20-
name: ${{ matrix.release }}-${{ runner.os }}-codeissues
21-
path: CodeIssues.sarif
22-
239
- name: Non-Mex Test
24-
if: ${{ matrix.release >= 'R2024b' || startsWith(matrix.release, 'latest') }}
10+
if: ${{ matrix.release >= 'R2023a' || startsWith(matrix.release, 'latest') }}
2511
uses: matlab-actions/run-build@v2
2612
with:
2713
startup-options: ${{ matrix.startup-options }}
2814
tasks: test
2915

30-
- name: Mex Test
31-
if: ${{ matrix.release >= 'R2023a' || startsWith(matrix.release, 'latest') }}
32-
uses: matlab-actions/run-build@v2
33-
with:
34-
startup-options: ${{ matrix.startup-options }} -logfile ${{ matrix.release }}-${{ runner.os }}-test.log
35-
tasks: mex test
36-
37-
3816
# note: "source-folder" is necessary, but watch out as it adds all subfolders to path too
3917
# https://github.com/matlab-actions/run-tests?tab=readme-ov-file#run-matlab-tests
4018
- name: Run tests (manual)

0 commit comments

Comments
 (0)