summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorKiritoDv <kiritodev01@gmail.com>2026-07-02 22:14:59 -0600
committerKiritoDv <kiritodev01@gmail.com>2026-07-02 22:14:59 -0600
commit954aab9281960a6380ea7be940371f58bd6ca499 (patch)
treea9c600e48fe40842fea7814799b18752e1a0b3c6 /.github
parent58527d7bf8778bc67179454a19ad8c84a74aff13 (diff)
Fixed windows workflows
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/windows_build.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml
index 9c9d964..6a21f3a 100644
--- a/.github/workflows/windows_build.yml
+++ b/.github/workflows/windows_build.yml
@@ -10,6 +10,7 @@ jobs:
build:
runs-on: windows-2022
strategy:
+ fail-fast: false
matrix:
config: [Release, Debug]
toolchain: [windows-msvc, windows-clang-cl]
@@ -33,7 +34,9 @@ jobs:
# vcpkg to fetch SDL2/GLEW/libzip/nlohmann-json/tinyxml2/spdlog.
$env:VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT
cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_TOOLCHAIN_FILE="cmake/toolchain/${{ matrix.toolchain }}.cmake" -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }} -DBUILD_UI=${{ matrix.arch == 'Win32' && 'OFF' || 'ON' }} -DUSE_AUTO_VCPKG=ON -DVCPKG_TARGET_TRIPLET=x64-windows-static
- cmake --build ./build/${{ matrix.arch }}
+ # Multi-config generator: pass --config, else it builds Debug and the
+ # Release artifact path below finds nothing.
+ cmake --build ./build/${{ matrix.arch }} --config ${{ matrix.config }}
- name: Setup Variables
if: ${{ matrix.generate == 'Ninja' }}
uses: ilammy/msvc-dev-cmd@v1
@@ -53,4 +56,5 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: torch-windows-${{ matrix.arch }}-${{ matrix.toolchain }}
- path: build/${{ matrix.arch }}/Release/torch.exe \ No newline at end of file
+ path: build/${{ matrix.arch }}/Release/torch.exe
+ if-no-files-found: error \ No newline at end of file