diff --git a/.github/workflows/matlab.yml b/.github/workflows/matlab.yml index 0889b664d8984..caef57356c1dc 100644 --- a/.github/workflows/matlab.yml +++ b/.github/workflows/matlab.yml @@ -74,8 +74,15 @@ jobs: restore-keys: matlab-ccache-windows- - name: Build MATLAB Interface shell: cmd - run: - ci/scripts/matlab_build.sh $(pwd) + run: | + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 + cmake \ + -S . \ + -B .\matlab\build \ + -G Ninja \ + -D CMAKE_INSTALL_PREFIX=.\matlab\install \ + -D MATLAB_ADD_INSTALL_DIR_TO_SEARCH_PATH=OFF + cmake --build .\matlab\build --config Release --target install - name: Run MATLAB Tests env: # Add the installation directory to the MATLAB Search Path by