Skip to content

Commit c7f2cf2

Browse files
authored
[CI] Reduce wheel size by not shipping debug symbols (#4602)
1 parent 8d8357c commit c7f2cf2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.buildkite/check-wheel-size.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def check_wheel_size(directory):
2525
f"compare to the allowed size ({MAX_SIZE_MB} MB).")
2626
print_top_10_largest_files(wheel_path)
2727
return 1
28+
else:
29+
print(f"Wheel {wheel_path} is within the allowed size "
30+
f"({wheel_size_mb} MB).")
2831
return 0
2932

3033

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979
8080
- name: Build wheel
8181
shell: bash
82+
env:
83+
CMAKE_BUILD_TYPE: Release # do not compile with debug symbol to reduce wheel size
8284
run: |
8385
bash -x .github/workflows/scripts/build.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
8486
wheel_name=$(ls dist/*whl | xargs -n 1 basename)

0 commit comments

Comments
 (0)