From 60f01290b4a881b3ccc88036738f2fe49a126681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Trifir=C3=B2?= Date: Tue, 21 May 2024 12:00:29 +0200 Subject: [PATCH] [CI/Build]: set CMAKE_BUILD_TYPE=release on wheel build 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. --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9c35ede5f678..5808e737e023 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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"}