diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-08-06 13:01:00 +0200 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-08-06 09:16:54 -0600 |
| commit | 732f7e751effb1a30abd08f540ce758502ec8043 (patch) | |
| tree | d0c91d24148980a56f24f380f2345d2168a8aa4e /.github | |
| parent | 2830f674035601448ac6f245b6ad06c0afefd0da (diff) | |
add arch and standalone
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/windows_build.yml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml index cc9902f..68619ab 100644 --- a/.github/workflows/windows_build.yml +++ b/.github/workflows/windows_build.yml @@ -13,33 +13,35 @@ jobs: matrix: config: [Release, Debug] toolchain: [v143, clangcl] + standalone: [OFF, ON] generate: [Visual Studio 17 2022, Ninja] + arch: [x64, x86] steps: - uses: actions/checkout@v4 - name: Build Visual Studio if: ${{ matrix.generate == 'Visual Studio 17 2022' }} run: | - cmake -S . -B "build/x64" -G "${{ matrix.generate }}" -T ${{ matrix.toolchain }} -A x64 -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} - cmake --build ./build/x64 + cmake -S . -B "build/${{ matrix.arch }}" -G "${{ matrix.generate }}" -T ${{ matrix.toolchain }} -A ${{ 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: x64 + arch: ${{ matrix.arch }} # only use default toolchain for Ninja - name: Build Ninja msvc if: ${{ matrix.generate == 'Ninja' && matrix.toolchain == 'v143' }} run: | - cmake -S . -B "build/x64" -G "${{ matrix.generate }}" -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }} - cmake --build ./build/x64 --config ${{ matrix.config }} --parallel 10 + 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 == 'clangcl' }} run: | - cmake -S . -B "build/x64" -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 - cmake --build ./build/x64 --config ${{ matrix.config }} --parallel 10 + 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' }} uses: actions/upload-artifact@v4 with: - name: torch-windows-x64-${{ matrix.toolchain }} - path: build/x64/Release/torch.exe
\ No newline at end of file + name: torch-windows-${{ matrix.arch }}-${{ matrix.toolchain }} + path: build/${{ matrix.arch }}/Release/torch.exe
\ No newline at end of file |
