Skip to content

Commit

Permalink
Updated windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcoalp committed Mar 13, 2021
1 parent 491a763 commit 04fc01c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
args: [ -d -t --mingw, -d -t --shared --mingw, -r -t --mingw, -r -t --shared --mingw ]
args: [ -r -t --mingw, -r -t --shared --mingw ]
steps:
- uses: actions/checkout@v2
- name: Build Debug
- name: Build
run: platform-scripts\windows\build ${{ matrix.args }}
- name: Test Debug
- name: Test
run: platform-scripts\windows\test ${{ matrix.args }}
4 changes: 2 additions & 2 deletions platform-scripts/windows/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ set generator="Visual Studio 16 2019"
)
mkdir build\%configuration%
cd build\%configuration%
cmake ..\.. -G %generator% -DBUILD_SHARED_LIBS=%shared% -DMOON_BUILD_TESTS=%tests% -DMOON_BUILD_DOC=%doc% -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_INSTALL_PREFIX=./bin
cmake --build . --config %configuration% %install%
cmake ..\.. -G %generator% -DBUILD_SHARED_LIBS=%shared% -DMOON_BUILD_TESTS=%tests% -DMOON_BUILD_DOC=%doc% -DCMAKE_BUILD_TYPE=%configuration% -DCMAKE_INSTALL_PREFIX=./bin || exit 1
cmake --build . --config %configuration% %install% || exit 1
cd ..\..
goto end

Expand Down
4 changes: 2 additions & 2 deletions platform-scripts/windows/test.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ set configuration=Debug
if not "%~1" == "" goto loop

:test
cd build\%configuration%\test || goto end
%configuration%\moon_tst || moon_tst
cd build\%configuration%\test || exit 1
%configuration%\moon_tst || moon_tst || exit 1
cd ..\..\..
goto end

Expand Down

0 comments on commit 04fc01c

Please sign in to comment.