Skip to content

Commit

Permalink
[CI/Build]: set CMAKE_BUILD_TYPE=release on wheel build
Browse files Browse the repository at this point in the history
This builds the Extensions with `-DCMAKE_BUILD_TYPE=Release`, which enables optimizations and disables
debugging symbols in the generated build files. This results in a faster and more efficient executable.
  • Loading branch information
dtrifiro committed May 21, 2024
1 parent e941f88 commit 60f0129
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ jobs:
env:
CMAKE_BUILD_TYPE: Release # do not compile with debug symbol to reduce wheel size
run: |
export CMAKE_BUILD_TYPE=Release
bash -x .github/workflows/scripts/build.sh ${{ matrix.python-version }} ${{ matrix.cuda-version }}
wheel_name=$(ls dist/*whl | xargs -n 1 basename)
asset_name=${wheel_name//"linux"/"manylinux1"}
Expand Down

0 comments on commit 60f0129

Please sign in to comment.