filename: validate input #846
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| paths: | |
| - "**.m" | |
| - "**.h" | |
| - "**.cpp" | |
| - ".github/workflows/ci.yml" | |
| - ".github/workflows/*/action.yml" | |
| - "!private/publish_gen_index_html.m" | |
| - "!octave_build.m" | |
| - "!scripts/**" | |
| # avoid wasted runs | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| matlab: | |
| timeout-minutes: 15 | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04, windows-2022] | |
| release: [R2022a, R2022b, R2023a, R2023b, R2024a, R2024b, R2025a] | |
| # on Linux, even R2025a needs GCC 10.x and hence Github Actions runner ubuntu-22.04. | |
| # R2021a...R2022a officially need Ubuntu 20.04, | |
| # which is no longer available on Github Actions | |
| include: | |
| - os: macos-latest | |
| release: R2025a | |
| - os: macos-latest | |
| release: R2024b | |
| - os: macos-latest | |
| release: R2024a | |
| - os: macos-latest | |
| release: R2023b | |
| # macOS R2023b to be compatible with Xcode version on Github Actions runner | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/composite-install-matlab | |
| - name: Fortran FC | |
| if: runner.os == 'macOS' | |
| run: echo "FC=gfortran-14" >> $GITHUB_ENV | |
| - name: Check CodeIssues | |
| if: ${{ matrix.release >= 'R2024a' }} | |
| uses: ./.github/workflows/composite-check | |
| - name: Matlab tell External Language Interface versions | |
| uses: matlab-actions/run-command@v2 | |
| with: | |
| command: stdlib.platform_tell() | |
| - name: Non-MEX tests | |
| uses: ./.github/workflows/composite-nomex | |
| - name: Mex & Exe Test (>= R2024b) | |
| if: ${{ matrix.release >= 'R2024b' }} | |
| uses: matlab-actions/run-build@v2 | |
| with: | |
| startup-options: -logfile ${{ matrix.release }}-${{ runner.os }}-test.log | |
| tasks: test:mex test:exe | |
| - name: Exe Test (legacy) | |
| if: ${{ matrix.release >= 'R2023a' && matrix.release < 'R2024b' }} | |
| uses: matlab-actions/run-build@v2 | |
| with: | |
| startup-options: -logfile ${{ matrix.release }}-${{ runner.os }}-test.log | |
| tasks: test_exe | |
| matlab-older-than-R2022a: | |
| timeout-minutes: 15 | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-22.04] | |
| release: [R2021a, R2021b] | |
| name: ${{ matrix.release }}-${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: ./.github/workflows/composite-install-matlab | |
| - name: Matlab tell External Language Interface versions | |
| uses: matlab-actions/run-command@v2 | |
| with: | |
| command: stdlib.platform_tell() | |
| - name: Non-MEX tests | |
| uses: ./.github/workflows/composite-nomex |