Skip to content

Commit

Permalink
ci: add
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Dec 19, 2024
1 parent da825a8 commit 2d1a299
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/ci-matlab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: matlab

on:
push:
paths:
- "**.m"
- "**.cmake"
- "**/CMakeLists.txt"
- ".github/workflows/ci-matlab.yml"


jobs:

unix:

strategy:
matrix:
os: [ubuntu-24.04, macos-latest]
matlab: [R2024b]

runs-on: ${{ matrix.os }}

steps:

- name: Install MATLAB
timeout-minutes: 10
uses: matlab-actions/setup-matlab@v2
with:
release: ${{ matrix.matlab }}
cache: true

- uses: actions/checkout@v4

- name: Lint task
uses: matlab-actions/run-build@v2
with:
tasks: check

- name: Test task
uses: matlab-actions/run-build@v2
with:
tasks: test


msys2:
runs-on: windows-latest
timeout-minutes: 10

steps:
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
mingw-w64-ucrt-x86_64-gcc-fortran
- name: Put MSYS2_MinGW64 on PATH
run: echo "${{ runner.temp }}/msys64/ucrt64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Install MATLAB
timeout-minutes: 10
uses: matlab-actions/setup-matlab@v2
with:
release: R2024b
cache: true

- uses: actions/checkout@v4

- name: Lint task
uses: matlab-actions/run-build@v2
with:
tasks: check

- name: Test task
uses: matlab-actions/run-build@v2
with:
tasks: test

0 comments on commit 2d1a299

Please sign in to comment.