Restore upstream Windows action build options (#322)
This commit is contained in:
parent
4df0c47145
commit
0eaf3b755b
1 changed files with 8 additions and 12 deletions
20
.github/workflows/win.yml
vendored
20
.github/workflows/win.yml
vendored
|
|
@ -155,29 +155,25 @@ jobs:
|
||||||
if: env.ONLY_CACHE == 'false'
|
if: env.ONLY_CACHE == 'false'
|
||||||
run: |
|
run: |
|
||||||
C:
|
C:
|
||||||
cd %TBUILD%\%REPO_NAME%
|
cd %TBUILD%\%REPO_NAME%\Telegram
|
||||||
|
|
||||||
cmake -B build . ^
|
call configure.bat ^
|
||||||
-G Ninja ^
|
${{ matrix.arch }} ^
|
||||||
-D CMAKE_BUILD_TYPE=Debug ^
|
|
||||||
-D CMAKE_C_COMPILER=cl ^
|
|
||||||
-D CMAKE_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 ^
|
||||||
-D DESKTOP_APP_DISABLE_AUTOUPDATE=ON ^
|
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=OFF ^
|
||||||
-D DESKTOP_APP_DISABLE_CRASH_REPORTS=ON ^
|
|
||||||
-D DESKTOP_APP_NO_PDB=ON ^
|
-D DESKTOP_APP_NO_PDB=ON ^
|
||||||
%TDESKTOP_BUILD_DEFINE% ^
|
%TDESKTOP_BUILD_DEFINE% ^
|
||||||
-DCMAKE_SYSTEM_VERSION=%SDK% ^
|
-DCMAKE_SYSTEM_VERSION=%SDK%
|
||||||
-DCMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION=%SDK%
|
|
||||||
|
|
||||||
cmake --build build
|
cd ..\out
|
||||||
|
msbuild -m Telegram.sln /p:Configuration=Debug,Platform=${{ matrix.arch }},DebugSymbols=false,DebugType=none
|
||||||
|
|
||||||
- name: Move artifact.
|
- name: Move artifact.
|
||||||
if: env.UPLOAD_ARTIFACT == 'true'
|
if: env.UPLOAD_ARTIFACT == 'true'
|
||||||
run: |
|
run: |
|
||||||
mkdir artifact
|
mkdir artifact
|
||||||
move %TBUILD%\%REPO_NAME%\build\Kotatogram.exe artifact/
|
move %TBUILD%\%REPO_NAME%\out\Debug\Kotatogram.exe artifact/
|
||||||
- uses: actions/upload-artifact@master
|
- uses: actions/upload-artifact@master
|
||||||
name: Upload artifact.
|
name: Upload artifact.
|
||||||
if: env.UPLOAD_ARTIFACT == 'true'
|
if: env.UPLOAD_ARTIFACT == 'true'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue