From d5a9c648ab6fad8d757d6189a73eba68ee4a346f Mon Sep 17 00:00:00 2001 From: scivision Date: Thu, 19 Dec 2024 17:44:04 -0500 Subject: [PATCH] ci: add matlab --- .github/workflows/ci-matlab.yml | 52 +++++++++++++++++++++++++++++++++ .gitignore | 2 ++ buildfile.m | 1 - 3 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci-matlab.yml diff --git a/.github/workflows/ci-matlab.yml b/.github/workflows/ci-matlab.yml new file mode 100644 index 0000000..b5cf42d --- /dev/null +++ b/.github/workflows/ci-matlab.yml @@ -0,0 +1,52 @@ +name: matlab + +env: + CTEST_NO_TESTS_ACTION: error + CMAKE_BUILD_PARALLEL_LEVEL: 4 + CTEST_PARALLEL_LEVEL: 0 + +on: + push: + paths: + - "**.m" + - "**.cmake" + - "**/CMakeLists.txt" + - ".github/workflows/ci.yml" + +# Engine can't start on CI runner Linux, but works on real Linux computer + +jobs: + + unix: + + strategy: + matrix: + os: [ubuntu-22.04] + matlab: [R2024b] + + runs-on: ${{ matrix.os }} + + env: + CC: gcc-10 + CXX: g++-10 + FC: gfortran-10 + + steps: + + - name: Install MATLAB + timeout-minutes: 10 + uses: matlab-actions/setup-matlab@v2 + with: + release: ${{ matrix.matlab }} + + - 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 diff --git a/.gitignore b/.gitignore index dfff1d0..c926c3a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +msis00_driver + *.m~ *.svg bin/ diff --git a/buildfile.m b/buildfile.m index f19ec27..a2c9e6b 100644 --- a/buildfile.m +++ b/buildfile.m @@ -1,7 +1,6 @@ function plan = buildfile plan = buildplan(localfunctions); plan.DefaultTasks = "test"; -plan("test").Dependencies = "check"; end function checkTask(~)