ci(amd64/msvc): source vsdevcmd.bat
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
light7734 2026-02-02 13:27:20 +03:30
parent 1cbadef7ba
commit 730f008c67
Signed by: light7734
GPG key ID: E7CE6145374F0B5F
2 changed files with 6 additions and 6 deletions

View file

@ -13,13 +13,9 @@ platform:
steps: steps:
- name: unit tests - name: unit tests
shell: 'C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\Tools\VsDevCmd.bat' shell: powershell
commands: commands:
- powershell.exe -NoProfile -Command "&& { - ./tools/ci/amd64/msvc/unit_tests.ps1
Import-Module 'C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll';
Enter-VsDevShell 1a3e2aa7 -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64';
./tools/ci/amd64/msvc/unit_tests.ps1
}"
--- ---
kind: pipeline kind: pipeline

View file

@ -1,5 +1,9 @@
# @ref https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-by-category # @ref https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-by-category
# @todo(Light): fetch path and uuid from environment
Import-Module 'C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\Tools\Microsoft.VisualStudio.DevShell.dll'
Enter-VsDevShell 1a3e2aa7 -SkipAutomaticLocation -DevCmdArguments '-arch=x64 -host_arch=x64'
if (Test-Path "./build") { if (Test-Path "./build") {
Remove-Item "./build" -r -force Remove-Item "./build" -r -force
} }