Skip to content

Commit 8d82b16

Browse files
committed
ci: don't use release: latest for clarity
This simplifies logical expressions and avoids ambiguity with caching
1 parent 78d8257 commit 8d82b16

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/ci-nojvm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
os: [ubuntu-22.04, macos-latest, windows-latest]
31-
release: [latest]
31+
release: [R2023b, R2025a]
3232
startup-options: ["-nojvm"]
3333

3434
steps:

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
# https://www.mathworks.com/support/requirements/openjdk.html
6161
# old matlab may segfault with too-new JDK
6262
- name: matlab_jenv JDK 11
63-
if: ${{ matrix.release >= 'R2023a' && matrix.release < 'R2025a' && !startsWith(matrix.release, 'latest') }}
63+
if: ${{ matrix.release >= 'R2023a' && matrix.release < 'R2025a' }}
6464
run: matlab_jenv ${JAVA_HOME_11_X64}
6565

6666
- name: Matlab tell Java Version

.github/workflows/composite-check/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
steps:
88

99
- name: Check task
10-
if: ${{ matrix.release >= 'R2024a' || startsWith(matrix.release, 'latest') }}
10+
if: ${{ matrix.release >= 'R2024a' }}
1111
uses: matlab-actions/run-build@v2
1212
with:
1313
startup-options: ${{ matrix.startup-options }}

.github/workflows/composite-mex/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ runs:
77
steps:
88

99
- name: Mex Test
10-
if: ${{ matrix.release >= 'R2023b' || startsWith(matrix.release, 'latest') }}
10+
if: ${{ matrix.release >= 'R2023b' }}
1111
uses: matlab-actions/run-build@v2
1212
with:
1313
startup-options: ${{ matrix.startup-options }} -logfile ${{ matrix.release }}-${{ runner.os }}-test.log
14-
tasks: ${{ (matrix.release < 'R2024b' && !startsWith(matrix.release, 'latest')) && 'test_mex test_exe' || 'test:mex test:exe' }}
14+
tasks: ${{ matrix.release < 'R2024b' && 'test_mex test_exe' || 'test:mex test:exe' }}

.github/workflows/composite-nomex/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ runs:
77
steps:
88

99
- name: Non-Mex Test
10-
if: ${{ matrix.release >= 'R2024b' || startsWith(matrix.release, 'latest') }}
10+
if: ${{ matrix.release >= 'R2024b' }}
1111
uses: matlab-actions/run-build@v2
1212
with:
1313
startup-options: ${{ matrix.startup-options }}
1414
tasks: test:nomex
1515

1616

1717
- name: Non-Mex Test (< R2024b)
18-
if: ${{ matrix.release >= 'R2023b' && matrix.release < 'R2024b' && !startsWith(matrix.release, 'latest') }}
18+
if: ${{ matrix.release >= 'R2023b' && matrix.release < 'R2024b' }}
1919
uses: matlab-actions/run-build@v2
2020
with:
2121
startup-options: ${{ matrix.startup-options }}
2222
tasks: test_nomex
2323

2424

2525
- name: Java Test
26-
if: ${{ !contains(matrix.startup-options, '-nojvm') && (matrix.release >= 'R2024b' || startsWith(matrix.release, 'latest')) }}
26+
if: ${{ !contains(matrix.startup-options, '-nojvm') && (matrix.release >= 'R2024b' }}
2727
uses: matlab-actions/run-build@v2
2828
with:
2929
startup-options: ${{ matrix.startup-options }}
3030
tasks: test:java
3131

3232

3333
- name: Java Test (< R2024b)
34-
if: ${{ !contains(matrix.startup-options, '-nojvm') && (matrix.release >= 'R2023b' && matrix.release < 'R2024b' && !startsWith(matrix.release, 'latest')) }}
34+
if: ${{ !contains(matrix.startup-options, '-nojvm') && (matrix.release >= 'R2023b' && matrix.release < 'R2024b' }}
3535
uses: matlab-actions/run-build@v2
3636
with:
3737
startup-options: ${{ matrix.startup-options }}
@@ -41,7 +41,7 @@ runs:
4141
# note: "source-folder" is necessary, but watch out as it adds all subfolders to path too
4242
# https://github.com/matlab-actions/run-tests?tab=readme-ov-file#run-matlab-tests
4343
- name: Non-mex tests (< R2023b)
44-
if: ${{ matrix.release < 'R2023b' && !startsWith(matrix.release, 'latest') }}
44+
if: ${{ matrix.release < 'R2023b' }}
4545
uses: matlab-actions/run-command@v2
4646
with:
4747
command: addpath("${{ github.workspace }}"), test_nomex

0 commit comments

Comments
 (0)