summaryrefslogtreecommitdiff
path: root/.github/workflows/mac_build.yml
blob: bc13a3bbefeb3a069d15d3eece57b06f617d6333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Macos Compile

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

jobs:
  build:
    runs-on: macOS-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install dependencies
        run: brew install cmake ninja xcodes
      - name: Build
        run: |
          cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=Release
          cmake --build build-cmake -j
      - name: Create Package
        run: |
          mkdir torch-release
          mv build-cmake/torch torch-release/
      - name: Publish packaged artifacts
        uses: actions/upload-artifact@v4
        with:
            name: torch-mac-x64
            path: torch-release