Skip to content

Commit

Permalink
Switch from MSBuild to Ninja on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
skejeton committed May 21, 2024
1 parent 51eef54 commit 313cc00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1
- name: Build with CMake+MSbuild
- name: Build with CMake+Ninja
run: |
git submodule init
git submodule update --remote
./msbuild.bat
./build.bat
linux_build:
runs-on: ubuntu-20.04
Expand Down
6 changes: 3 additions & 3 deletions msbuild.bat → build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if %ERRORLEVEL% NEQ 0 (

where cmake
if %ERRORLEVEL% NEQ 0 (
echo ERROR: You need cmake.
echo ERROR: You need cmake.
exit /b
)

Expand All @@ -26,6 +26,6 @@ set target=Release
md bin
cd bin

cmake -DCMAKE_BUILD_TYPE=%target% .. && msbuild tophat.sln /property:Configuration=%target%
cmake -DCMAKE_BUILD_TYPE=%target% -G Ninja .. && cmake --build .
cd ..
copy bin\%target%\tophat.exe tophat.exe
copy bin\tophat.exe tophat.exe

0 comments on commit 313cc00

Please sign in to comment.