Skip to content

Commit c7e2f00

Browse files
committed
ci: consolidate
1 parent c189b09 commit c7e2f00

File tree

4 files changed

+37
-75
lines changed

4 files changed

+37
-75
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.

Readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
[![DOI](https://zenodo.org/badge/273830124.svg)](https://zenodo.org/badge/latestdoi/273830124)
44
[![View stdlib for Matlab on File Exchange](https://www.mathworks.com/matlabcentral/images/matlab-file-exchange.svg)](https://www.mathworks.com/matlabcentral/fileexchange/78673-stdlib-for-matlab)
55
[![ci](https://github.com/geospace-code/matlab-stdlib/actions/workflows/ci.yml/badge.svg)](https://github.com/geospace-code/matlab-stdlib/actions/workflows/ci.yml)
6-
[![ci-nojvm](https://github.com/geospace-code/matlab-stdlib/actions/workflows/ci-nojvm.yml/badge.svg)](https://github.com/geospace-code/matlab-stdlib/actions/workflows/ci-nojvm.yml)
76

87
Matlab users coming from other languages will benefit from the functionality contained within this user-developed, unofficial "stdlib" standard library of functions.
98
These system, filesystem, and HDF5 / HDF4 / NetCDF functions are used by numerous independent projects.

0 commit comments

Comments
 (0)