summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-08-06 13:42:39 +0200
committerLywx <kiritodev01@gmail.com>2025-08-06 09:16:54 -0600
commit0d9616d704dd386adfe9f7ff95c7079d02cc05ec (patch)
tree2859782b7137e3b96897af502272eef841d4ca46 /.github
parent6273174304381e8dac3a314d19b241df0ee93362 (diff)
also check standalone on other os
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linux_build.yml5
-rw-r--r--.github/workflows/mac_build.yml5
2 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/linux_build.yml b/.github/workflows/linux_build.yml
index 788593f..14c8ae2 100644
--- a/.github/workflows/linux_build.yml
+++ b/.github/workflows/linux_build.yml
@@ -12,13 +12,14 @@ jobs:
strategy:
matrix:
config: [Release, Debug]
+ standalone: [OFF, ON]
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=${{ matrix.config }}
+ cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }}
cmake --build build-cmake -j
- name: Create Package
run: |
@@ -26,7 +27,7 @@ jobs:
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
- if: ${{ matrix.config == 'Release' }}
+ if: ${{ matrix.config == 'Release' && matrix.standalone == 'ON' }}
uses: actions/upload-artifact@v4
with:
name: torch-linux-x64
diff --git a/.github/workflows/mac_build.yml b/.github/workflows/mac_build.yml
index f460459..86c4e8b 100644
--- a/.github/workflows/mac_build.yml
+++ b/.github/workflows/mac_build.yml
@@ -12,20 +12,21 @@ jobs:
strategy:
matrix:
config: [Release, Debug]
+ standalone: [OFF, ON]
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=${{ matrix.config }}
+ cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }}
cmake --build build-cmake -j
- name: Create Package
run: |
mkdir torch-release
mv build-cmake/torch torch-release/
- name: Publish packaged artifacts
- if: ${{ matrix.config == 'Release' }}
+ if: ${{ matrix.config == 'Release' && matrix.standalone == 'ON' }}
uses: actions/upload-artifact@v4
with:
name: torch-mac-bin