mirror of
https://github.com/izzy2lost/Torch.git
synced 2026-07-06 00:18:35 -07:00
25 lines
585 B
YAML
25 lines
585 B
YAML
name: Windows Compile
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-2022
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Configure CMake (Visual Studio 17 2022, x64)
|
|
run: |
|
|
cmake -S . -B build/x64 -G "Visual Studio 17 2022" -DCMAKE_GENERATOR_PLATFORM=x64
|
|
|
|
- name: Build torch.exe
|
|
run: |
|
|
cmake --build build/x64 --config Release
|
|
|
|
- name: Publish packaged artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: torch-windows-x64
|
|
path: build/x64/Release/torch.exe
|