diff options
| author | coco875 <59367621+coco875@users.noreply.github.com> | 2025-08-06 16:14:52 +0200 |
|---|---|---|
| committer | Lywx <kiritodev01@gmail.com> | 2025-08-06 09:16:54 -0600 |
| commit | edd75fc809893525f459cd48eb5b89592b0003a2 (patch) | |
| tree | e32bd72e44e313869c216fbbc3ecfcce7c32eed9 /.github/workflows/linux_build.yml | |
| parent | a2d8818a601f19e3b1877c2afc955d8e74773389 (diff) | |
short name of toolchain
Diffstat (limited to '.github/workflows/linux_build.yml')
| -rw-r--r-- | .github/workflows/linux_build.yml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.github/workflows/linux_build.yml b/.github/workflows/linux_build.yml index 2e11e8c..a74eec9 100644 --- a/.github/workflows/linux_build.yml +++ b/.github/workflows/linux_build.yml @@ -13,24 +13,24 @@ jobs: matrix: config: [Release, Debug] standalone: [OFF, ON] - toolchain: [cmake/toolchain/linux-gnu.cmake, cmake/toolchain/linux-clang.cmake] + toolchain: [linux-gnu, linux-clang] 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 }} -DCMAKE_TOOLCHAIN_FILE=${{ matrix.toolchain }} + cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.config }} -DUSE_STANDALONE=${{ matrix.standalone }} -DCMAKE_TOOLCHAIN_FILE=cmake/toolchain/${{ matrix.toolchain }}.cmake cmake --build build-cmake -j - name: Create Package - if: ${{ matrix.config == 'Release' && matrix.standalone == 'ON' }} + if: ${{ matrix.config == 'Release' && matrix.standalone == 'ON' && matrix.toolchain == 'linux-gnu' }} 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 - if: ${{ matrix.config == 'Release' && matrix.standalone == 'ON' }} + if: ${{ matrix.config == 'Release' && matrix.standalone == 'ON' && matrix.toolchain == 'linux-gnu' }} uses: actions/upload-artifact@v4 with: - name: torch-linux-x64-${{ matrix.toolchain }} + name: torch-linux-x64 path: torch-release
\ No newline at end of file |
