also check standalone on other os

This commit is contained in:
coco875
2025-08-06 09:16:54 -06:00
committed by Lywx
parent 6273174304
commit 0d9616d704
2 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -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