summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-08-06 00:01:03 +0200
committerLywx <kiritodev01@gmail.com>2025-08-06 09:16:54 -0600
commitba8c71bed369c721c8f52f026c4f09ea415c1ce8 (patch)
treeb73c9a970803f03ea9b4ea7b3c65b28dd8c98174 /.github
parenta53ba761553b29e523887bdebc44daec870d6250 (diff)
add more config
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linux_build.yml6
-rw-r--r--.github/workflows/mac_build.yml6
-rw-r--r--.github/workflows/windows_build.yml6
3 files changed, 14 insertions, 4 deletions
diff --git a/.github/workflows/linux_build.yml b/.github/workflows/linux_build.yml
index 3dd3747..788593f 100644
--- a/.github/workflows/linux_build.yml
+++ b/.github/workflows/linux_build.yml
@@ -9,13 +9,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ config: [Release, Debug]
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 -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.config }}
cmake --build build-cmake -j
- name: Create Package
run: |
@@ -23,6 +26,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' }}
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 39e343e..f460459 100644
--- a/.github/workflows/mac_build.yml
+++ b/.github/workflows/mac_build.yml
@@ -9,19 +9,23 @@ on:
jobs:
build:
runs-on: macOS-latest
+ strategy:
+ matrix:
+ config: [Release, Debug]
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=Release
+ cmake -H. -Bbuild-cmake -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.config }}
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' }}
uses: actions/upload-artifact@v4
with:
name: torch-mac-bin
diff --git a/.github/workflows/windows_build.yml b/.github/workflows/windows_build.yml
index e4db50d..a02711f 100644
--- a/.github/workflows/windows_build.yml
+++ b/.github/workflows/windows_build.yml
@@ -11,15 +11,17 @@ jobs:
runs-on: windows-2022
strategy:
matrix:
+ config: [Release, Debug]
toolchain: [v143, clangcl]
steps:
- uses: actions/checkout@v4
- name: Build
run: |
- cmake -S . -B "build/x64" -G "Visual Studio 17 2022" -T ${{ matrix.toolchain }} -A x64 -DCMAKE_BUILD_TYPE:STRING=Release
+ cmake -S . -B "build/x64" -G "Visual Studio 17 2022" -T ${{ matrix.toolchain }} -A x64 -DCMAKE_BUILD_TYPE:STRING=${{ matrix.config }}
cmake --build ./build/x64
- name: Publish packaged artifacts
+ if: ${{ matrix.config == 'Release' }}
uses: actions/upload-artifact@v4
with:
name: torch-windows-x64-${{ matrix.toolchain }}
- path: build/x64/Debug/torch.exe \ No newline at end of file
+ path: build/x64/Release/torch.exe \ No newline at end of file