summaryrefslogtreecommitdiff
path: root/.github/workflows/windows_build.yml
blob: 74c7416b20ff48f18380d1e5b0dee23eb411d2bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Windows Compile

on:
  push:
    branches: [ "*" ]
  pull_request:
    branches: [ "master" ]

jobs:
  build:
    runs-on: windows-2022
    steps:
      - uses: actions/checkout@v4
      - name: Build
        run: |
          cmake -S . -B "build/x64" -G "Visual Studio 17 2022" -T v142 -A x64 -DCMAKE_BUILD_TYPE=Release
          cmake --build ./build/x64
      - name: Publish packaged artifacts
        uses: actions/upload-artifact@v4
        with:
          name: torch-windows-x64
          path: build/x64