summaryrefslogtreecommitdiff
path: root/.github/workflows/windows_build.yml
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-08-06 14:32:56 +0200
committerLywx <kiritodev01@gmail.com>2025-08-06 09:16:54 -0600
commit4b17d7a669c2a416cac937ff2124874c51655e90 (patch)
treeae5eb6e4074da9311cdff95246eb9cfdee36d5a2 /.github/workflows/windows_build.yml
parent36f15e0c46a52092d83a17b3b6eaf24b6389bec7 (diff)
try something
Diffstat (limited to '.github/workflows/windows_build.yml')
-rw-r--r--.github/workflows/windows_build.yml34
1 files changed, 17 insertions, 17 deletions
diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml
index c154b9d..ed7c622 100644
--- a/.github/workflows/windows_build.yml
+++ b/.github/workflows/windows_build.yml
@@ -22,26 +22,26 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build Visual Studio
- if: ${{ matrix.generate == 'Visual Studio 17 2022' }}
+ # if: ${{ matrix.generate == 'Visual Studio 17 2022' }}
run: |
cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_TOOLCHAIN_FILE="${{ matrix.toolchain }}" -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }}
cmake --build ./build/${{ matrix.arch }}
- - name: Setup Ninja
- if: ${{ matrix.generate == 'Ninja' }}
- uses: ilammy/msvc-dev-cmd@v1
- with:
- arch: ${{ matrix.arch }}
- # only use default toolchain for Ninja
- - name: Build Ninja msvc
- if: ${{ matrix.generate == 'Ninja' && matrix.toolchain == 'torch/cmake/toolchain/windows-msvc.cmake' }}
- run: |
- cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }}
- cmake --build ./build/${{ matrix.arch }} --config ${{ matrix.config }} --parallel 10
- - name: Build Ninja clang-cl
- if: ${{ matrix.generate == 'Ninja' && matrix.toolchain == 'cmake/toolchain/windows-clang-cl.cmake' }}
- run: |
- cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DCMAKE_CXX_COMPILER=clang-cl.exe -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_LINKER=lld-link.exe -DUSE_STANDALONE=${{ matrix.standalone }}
- cmake --build ./build/${{ matrix.arch }} --config ${{ matrix.config }} --parallel 10
+ # - name: Setup Ninja
+ # if: ${{ matrix.generate == 'Ninja' }}
+ # uses: ilammy/msvc-dev-cmd@v1
+ # with:
+ # arch: ${{ matrix.arch }}
+ # # only use default toolchain for Ninja
+ # - name: Build Ninja msvc
+ # if: ${{ matrix.generate == 'Ninja' && matrix.toolchain == 'torch/cmake/toolchain/windows-msvc.cmake' }}
+ # run: |
+ # cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }}
+ # cmake --build ./build/${{ matrix.arch }} --config ${{ matrix.config }} --parallel 10
+ # - name: Build Ninja clang-cl
+ # if: ${{ matrix.generate == 'Ninja' && matrix.toolchain == 'cmake/toolchain/windows-clang-cl.cmake' }}
+ # run: |
+ # cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} -DCMAKE_CXX_COMPILER=clang-cl.exe -DCMAKE_C_COMPILER=clang-cl.exe -DCMAKE_LINKER=lld-link.exe -DUSE_STANDALONE=${{ matrix.standalone }}
+ # cmake --build ./build/${{ matrix.arch }} --config ${{ matrix.config }} --parallel 10
- name: Publish packaged artifacts
if: ${{ matrix.config == 'Release' && matrix.generate == 'Visual Studio 17 2022' && matrix.standalone == 'ON' }}
uses: actions/upload-artifact@v4