7676 if : needs.tag.outputs.need_build == 'true' && github.repository == 'nunchaku-ai/nunchaku'
7777 strategy :
7878 matrix :
79- python : ["3.10", "3.11", "3.12", "3.13"]
80- torch : ["2.7", "2.8", "2.9", "pre"]
79+ # python: ["3.10", "3.11", "3.12", "3.13"]
80+ # torch: ["2.8", "2.9", "2.10", "pre"]
81+ # cuda: ["12.8", "13.0"]
82+ python : ["3.10"]
83+ torch : ["2.8"]
84+ cuda : ["12.8", "13.0"]
85+ exclude :
86+ - torch : " 2.8"
87+ cuda : " 13.0"
8188 steps :
8289 - name : Checkout to the tag
8390 uses : actions/checkout@v4
@@ -89,17 +96,10 @@ jobs:
8996 run : git log -1 --oneline
9097 - name : Build wheels
9198 run : |
92- if [[ "${{ matrix.torch }}" == "2.7" || "${{ matrix.torch }}" == "2.8" ]]; then
93- cuda_version="12.8"
94- elif [[ "${{ matrix.torch }}" == "2.9" ]]; then
95- cuda_version="13.0"
96- else
97- cuda_version="12.4"
98- fi
9999 if [[ "${{ matrix.torch }}" == "pre" ]]; then
100- bash scripts/build_linux_wheel_torch_nightly.sh ${{ matrix.python }} ${{ matrix.torch }} 13.0
100+ bash scripts/build_linux_wheel_torch_nightly.sh ${{ matrix.python }} ${{ matrix.torch }} ${{ matrix.cuda }}
101101 else
102- bash scripts/build_linux_wheel.sh ${{ matrix.python }} ${{ matrix.torch }} $cuda_version
102+ bash scripts/build_linux_wheel.sh ${{ matrix.python }} ${{ matrix.torch }} ${{ matrix.cuda }}
103103 fi
104104 - name : Upload wheels to GitHub Release
105105 uses : softprops/action-gh-release@v2
@@ -120,8 +120,15 @@ jobs:
120120 if : needs.tag.outputs.need_build == 'true' && github.repository == 'nunchaku-tech/nunchaku'
121121 strategy :
122122 matrix :
123- python : ["3.10", "3.11", "3.12", "3.13"]
124- torch : ["2.9", "pre"]
123+ # python: ["3.10", "3.11", "3.12", "3.13"]
124+ # torch: ["2.8", "2.9", "2.10", "pre"]
125+ # cuda: ["12.8", "13.0"]
126+ python : ["3.10"]
127+ torch : ["2.8"]
128+ cuda : ["12.8", "13.0"]
129+ exclude :
130+ - torch : " 2.8"
131+ cuda : " 13.0"
125132 steps :
126133 - name : Checkout to the tag
127134 uses : actions/checkout@v4
@@ -134,24 +141,11 @@ jobs:
134141 - name : Build wheels
135142 shell : cmd
136143 run : |
137- SET TORCH_VERSION=${{ matrix.torch }}
138- SET PYTHON_VERSION=${{ matrix.python }}
139- IF "%TORCH_VERSION%"=="2.7" (
140- SET CUDA_VERSION=12.8
141- ) ELSE IF "%TORCH_VERSION%"=="2.8" (
142- SET CUDA_VERSION=12.8
143- ) ELSE IF "%TORCH_VERSION%"=="2.9" (
144- SET CUDA_VERSION=13.0
145- ) ELSE IF "%TORCH_VERSION%"=="pre" (
146- SET CUDA_VERSION=13.0
147- ) ELSE (
148- SET CUDA_VERSION=12.4
149- )
150- call C:\Users\muyangl\miniconda3\condabin\activate.bat activate
151- IF "%TORCH_VERSION%"=="pre" (
152- call scripts\build_windows_wheel_torch_nightly.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION%
144+ call C:\Users\nunchaku\miniconda3\condabin\activate.bat activate
145+ IF "${{ matrix.torch }}"=="pre" (
146+ call scripts\build_windows_wheel_torch_nightly.cmd ${{ matrix.python }} ${{ matrix.torch }} ${{ matrix.cuda }}
153147 ) ELSE (
154- call scripts\build_windows_wheel.cmd %PYTHON_VERSION% %TORCH_VERSION% %CUDA_VERSION%
148+ call scripts\build_windows_wheel.cmd ${{ matrix.python }} ${{ matrix.torch }} ${{ matrix.cuda }}
155149 )
156150 - name : Upload wheels to GitHub Release
157151 uses : softprops/action-gh-release@v2
0 commit comments