disable windows build and add mac build

This commit is contained in:
coco875
2024-01-24 16:52:59 -06:00
committed by Lywx
parent ec3e74dfcd
commit 04497c0267
3 changed files with 71 additions and 41 deletions
+24 -24
View File
@@ -1,29 +1,29 @@
name: Linux Compile
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "master" ]
push:
branches: [ "*" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install cmake ninja-build libbz2-dev
- 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/
cp "$(ldconfig -p | grep libbz2.so.1.0 | tr ' ' '\n' | grep /| head -n1)" torch-release/
- name: Publish packaged artifacts
uses: actions/upload-artifact@v4
with:
name: linux-x64
path: torch-release
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install cmake ninja-build libbz2-dev
- 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/
cp "$(ldconfig -p | grep libbz2.so.1.0 | tr ' ' '\n' | grep /| head -n1)" torch-release/
- name: Publish packaged artifacts
uses: actions/upload-artifact@v4
with:
name: linux-x64
path: torch-release
+29
View File
@@ -0,0 +1,29 @@
name: Windows Compile
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "master" ]
jobs:
build:
if: false
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install cmake ninja xcode-tools
- 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: mac-x64
path: torch-release
+18 -17
View File
@@ -1,22 +1,23 @@
name: Windows Compile
on:
push:
branches: [ "*" ]
pull_request:
branches: [ "master" ]
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: windows
path: build/x64
build:
if: false
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: windows-x64
path: build/x64