3636 steps :
3737 - uses : actions/checkout@v4
3838 - name : Setup MSVC
39- if : startsWith(matrix .os, 'windows')
39+ if : runner .os == 'Windows'
4040 uses : ilammy/msvc-dev-cmd@v1.13.0 # to use cl
4141 with :
4242 arch : ${{ runner.arch == 'ARM64' && 'arm64' || 'x64' }}
4848 name : shared_library_${{ runner.os }}_${{ runner.arch }}
4949 path : output/*
5050 retention-days : 7
51+ if-no-files-found : error
5152
5253 # #
5354 # This job matrix builds the CUDA versions of the libraries for platforms that support CUDA (Linux x64/aarch64 + Windows x64)
6465 - uses : actions/checkout@v4
6566 # Windows: We install Cuda on the agent (slow)
6667 - uses : Jimver/cuda-toolkit@3d45d157f327c09c04b50ee6ccdea2d9d017ec76 # v0.2.35
67- if : startsWith(matrix .os, 'windows')
68+ if : runner .os == 'Windows'
6869 id : cuda-toolkit
6970 with :
7071 cuda : ${{ matrix.cuda_version }}
7576 use-local-cache : false
7677 log-file-suffix : ${{ runner.os }}-${{ runner.arch }}-${{matrix.cuda_version}}.txt
7778 - name : Setup MSVC
78- if : startsWith(matrix .os, 'windows')
79+ if : runner .os == 'Windows'
7980 uses : ilammy/msvc-dev-cmd@v1.13.0 # to use cl
8081 with :
8182 toolset : " 14.44"
8990 name : shared_library_cuda_${{ runner.os }}_${{ runner.arch }}_${{ matrix.cuda_version }}
9091 path : output/*
9192 retention-days : 7
93+ if-no-files-found : error
9294
9395 build-xpu :
9496 strategy :
@@ -110,6 +112,7 @@ jobs:
110112 name : shared_library_xpu_${{ runner.os }}_${{ runner.arch }}
111113 path : output/*
112114 retention-days : 7
115+ if-no-files-found : error
113116
114117 build-rocm :
115118 strategy :
@@ -123,7 +126,7 @@ jobs:
123126 steps :
124127 - uses : actions/checkout@v4
125128 - name : Clean up disk space
126- if : startsWith(matrix .os, 'ubuntu')
129+ if : runner .os == 'Linux'
127130 run : |
128131 echo "Disk space before cleanup:"
129132 df -h
@@ -140,7 +143,7 @@ jobs:
140143 echo "Disk space after cleanup:"
141144 df -h
142145 - name : Setup MSVC
143- if : startsWith(matrix .os, 'windows')
146+ if : runner .os == 'Windows'
144147 uses : ilammy/msvc-dev-cmd@v1.13.0
145148 with :
146149 toolset : " 14.44"
@@ -154,6 +157,7 @@ jobs:
154157 name : shared_library_rocm_${{ runner.os }}_${{ runner.arch }}_${{ matrix.rocm_version }}
155158 path : output/*
156159 retention-days : 7
160+ if-no-files-found : error
157161
158162 build-wheels :
159163 env :
@@ -187,11 +191,10 @@ jobs:
187191 - name : Set up Python
188192 uses : actions/setup-python@v5
189193 with :
190- # Python for Windows ARM64 is only available from 3.12+
191- python-version : ${{ matrix.os == 'windows-11-arm' && '3.12' || '3.10' }}
194+ python-version : " 3.12"
192195 cache : pip
193196 - run : pip install build wheel
194- - run : python -m build .
197+ - run : python -m build -w .
195198 - name : Determine and Set Platform Tag, then Tag Wheel
196199 shell : bash
197200 run : |
@@ -204,6 +207,8 @@ jobs:
204207 name : bdist_wheel_${{ runner.os }}_${{ runner.arch }}
205208 path : dist/bitsandbytes-*.whl
206209 retention-days : 7
210+ if-no-files-found : error
211+ compression-level : 0
207212
208213 upload-pre-release-wheels :
209214 name : Create release and upload artifacts
0 commit comments