From a928cc1f932a23c220421c8203466005f5642f2a Mon Sep 17 00:00:00 2001 From: Kevin Gurney Date: Tue, 21 Nov 2023 15:39:12 -0500 Subject: [PATCH] Try rewriting build script in terms of CMD commands. --- .github/workflows/matlab.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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