summaryrefslogtreecommitdiff
path: root/.github/workflows/linux_build.yml
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-08-06 16:06:03 +0200
committerLywx <kiritodev01@gmail.com>2025-08-06 09:16:54 -0600
commit1712046e9d18941726bc2a75ab0f3823eebf0fca (patch)
tree19225683202e72e48ea2b51e620617afd25708be /.github/workflows/linux_build.yml
parent95e7d360c1b69703aa358d37c6f15767195f86cb (diff)
same for linux
Diffstat (limited to '.github/workflows/linux_build.yml')
-rw-r--r--.github/workflows/linux_build.yml5
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/linux_build.yml b/.github/workflows/linux_build.yml
index fc88c9a..2e11e8c 100644
--- a/.github/workflows/linux_build.yml
+++ b/.github/workflows/linux_build.yml
@@ -13,13 +13,14 @@ jobs:
matrix:
config: [Release, Debug]
standalone: [OFF, ON]
+ toolchain: [cmake/toolchain/linux-gnu.cmake, cmake/toolchain/linux-clang.cmake]
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 }} -DUSE_STANDALONE=${{ matrix.standalone }}
+ cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }} -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }}
cmake --build build-cmake -j
- name: Create Package
if: ${{ matrix.config == 'Release' && matrix.standalone == 'ON' }}
@@ -31,5 +32,5 @@ jobs:
if: ${{ matrix.config == 'Release' && matrix.standalone == 'ON' }}
uses: actions/upload-artifact@v4
with:
- name: torch-linux-x64
+ name: torch-linux-x64-${{ matrix.toolchain }}
path: torch-release \ No newline at end of file