From 948a9d841883cce8b5e428cb64c08fcc49c142b1 Mon Sep 17 00:00:00 2001 From: ptahmose Date: Tue, 15 Oct 2024 23:31:48 +0200 Subject: [PATCH] test Improve Octave mex file compilation in build.yml Convert workspace path to forward slashes for Octave command. Add echo statement for debugging the command execution. Retain dir command to list OctaveOct directory contents. MATLAB setup and Linux build steps remain unchanged. --- .github/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index edd86cc..e49f647 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,10 @@ jobs: REM downside is that installing octave takes a long time. REM Note that we are using cmd.exe here, because it can "execute" the .lnk file. "%OCTAVECLI_LINK%" --version - "%OCTAVECLI_LINK%" --eval "cd %GITHUB_WORKSPACE%\OctaveOct , mkoctfile --mex octavelibczi.c" + echo "cd %GITHUB_WORKSPACE%/OctaveOct , mkoctfile --mex octavelibczi.c" + set "GITHUB_WORKSPACE_FORWARD_SLASHES=%GITHUB_WORKSPACE:\=/% + "%OCTAVECLI_LINK%" --eval "cd %GITHUB_WORKSPACE_FORWARD_SLASHES%/OctaveOct , mkoctfile --mex octavelibczi.c" + dir %GITHUB_WORKSPACE%\OctaveOct - name: Set up MATLAB uses: matlab-actions/setup-matlab@v2 - name: run build (Linux)