Use Ninja backend in Windows action
This commit is contained in:
parent
fc5529d4bc
commit
d3528bce99
1 changed files with 10 additions and 7 deletions
17
.github/workflows/win.yml
vendored
17
.github/workflows/win.yml
vendored
|
|
@ -363,23 +363,26 @@ jobs:
|
||||||
if: env.ONLY_CACHE == 'false'
|
if: env.ONLY_CACHE == 'false'
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
cd %REPO_NAME%\Telegram
|
cd %REPO_NAME%
|
||||||
|
call vcvars32.bat
|
||||||
|
|
||||||
call configure.bat ^
|
cmake -B build . ^
|
||||||
|
-GNinja ^
|
||||||
|
-DCMAKE_BUILD_TYPE=Debug ^
|
||||||
|
-DCMAKE_C_COMPILER=cl ^
|
||||||
|
-DCMAKE_CXX_COMPILER=cl ^
|
||||||
-D TDESKTOP_API_TEST=ON ^
|
-D TDESKTOP_API_TEST=ON ^
|
||||||
-D DESKTOP_APP_USE_PACKAGED=OFF ^
|
-D DESKTOP_APP_USE_PACKAGED=OFF ^
|
||||||
%TDESKTOP_BUILD_DEFINE% ^
|
%TDESKTOP_BUILD_DEFINE% ^
|
||||||
-DCMAKE_SYSTEM_VERSION=%SDK%
|
-DCMAKE_SYSTEM_VERSION=%SDK%
|
||||||
|
|
||||||
call vcvars32.bat
|
cmake --build build
|
||||||
cd ..\out
|
|
||||||
msbuild -m Telegram.sln /nologo /p:Configuration=Debug,Platform=Win32
|
|
||||||
|
|
||||||
- name: Move artifact.
|
- name: Move artifact.
|
||||||
if: env.UPLOAD_ARTIFACT == 'true'
|
if: env.UPLOAD_ARTIFACT == 'true'
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
cd %REPO_NAME%\out\Debug
|
cd %REPO_NAME%\build\bin
|
||||||
mkdir artifact
|
mkdir artifact
|
||||||
move Kotatogram.exe artifact/
|
move Kotatogram.exe artifact/
|
||||||
move Updater.exe artifact/
|
move Updater.exe artifact/
|
||||||
|
|
@ -388,4 +391,4 @@ jobs:
|
||||||
if: env.UPLOAD_ARTIFACT == 'true'
|
if: env.UPLOAD_ARTIFACT == 'true'
|
||||||
with:
|
with:
|
||||||
name: ${{ env.ARTIFACT_NAME }}
|
name: ${{ env.ARTIFACT_NAME }}
|
||||||
path: ${{ env.REPO_NAME }}\out\Debug\artifact\
|
path: ${{ env.REPO_NAME }}\build\bin\artifact\
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue