summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/linux_build.yml48
-rw-r--r--.github/workflows/mac_build.yml29
-rw-r--r--.github/workflows/windows_build.yml35
3 files changed, 71 insertions, 41 deletions
diff --git a/.github/workflows/linux_build.yml b/.github/workflows/linux_build.yml
index 18e0776..d24d893 100644
--- a/.github/workflows/linux_build.yml
+++ b/.github/workflows/linux_build.yml
@@ -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 \ No newline at end of file
+ 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 \ No newline at end of file
diff --git a/.github/workflows/mac_build.yml b/.github/workflows/mac_build.yml
new file mode 100644
index 0000000..db92ef7
--- /dev/null
+++ b/.github/workflows/mac_build.yml
@@ -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 \ No newline at end of file
diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml
index 47d1d69..7859016 100644
--- a/.github/workflows/windows_build.yml
+++ b/.github/workflows/windows_build.yml
@@ -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 \ No newline at end of file
+ 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 \ No newline at end of file