瀏覽代碼

Fixup upload.ps1 for GHA

No extra folders are created with ninja generator after previous CMake fixes.
Danila Malyutin 3 年之前
父節點
當前提交
7325fb054d
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      .ci/scripts/windows/upload.ps1

+ 5 - 1
.ci/scripts/windows/upload.ps1

@@ -26,7 +26,11 @@ $env:BUILD_ZIP = $MSVC_BUILD_ZIP
 $env:BUILD_SYMBOLS = $MSVC_BUILD_PDB
 $env:BUILD_UPDATE = $MSVC_SEVENZIP
 
-$BUILD_DIR = ".\build\bin\Release"
+if (Test-Path -Path ".\build\bin\Release") {
+    $BUILD_DIR = ".\build\bin\Release"
+} else {
+    $BUILD_DIR = ".\build\bin\"
+}
 
 # Cleanup unneeded data in submodules
 git submodule foreach git clean -fxd