From 82b5e5765130e0fe8b641d3e5a828c577053ad2e Mon Sep 17 00:00:00 2001 From: Zhichang Yu Date: Mon, 2 Sep 2024 13:44:33 +0800 Subject: [PATCH] Changed infinity and pysdk build type to from RelWithDebInfo to Release to reduce pysdk size. --- .github/workflows/release.yml | 5 +---- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b5f4524baf..0ff18bbf53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -76,10 +76,7 @@ jobs: - name: Build release version run: | sed -i "s/^version = \".*\"/version = \"$(echo $RELEASE_TAG | cut -c2-)\"/" pyproject.toml - sudo docker exec ${BUILDER_CONTAINER} bash -c "git config --global safe.directory \"*\" && cd /infinity && rm -fr cmake-build-release && mkdir -p cmake-build-release && cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCPACK_PACKAGE_VERSION=${{ env.RELEASE_TAG }} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=amd64 -DCMAKE_JOB_POOLS:STRING='link=1' -S /infinity -B /infinity/cmake-build-release && cmake --build /infinity/cmake-build-release --target infinity" - - - name: Download resources - run: rm -rf resource && git clone --depth=1 https://github.com/infiniflow/resource.git + sudo docker exec ${BUILDER_CONTAINER} bash -c "git config --global safe.directory \"*\" && cd /infinity && rm -fr cmake-build-release && mkdir -p cmake-build-release && cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCPACK_PACKAGE_VERSION=${{ env.RELEASE_TAG }} -DCPACK_DEBIAN_PACKAGE_ARCHITECTURE=amd64 -DCMAKE_JOB_POOLS:STRING='link=1' -S /infinity -B /infinity/cmake-build-release && cmake --build /infinity/cmake-build-release --target infinity" - name: Build RPM and DEB run: sudo docker exec ${BUILDER_CONTAINER} bash -c "cd /infinity/cmake-build-release && cpack" diff --git a/pyproject.toml b/pyproject.toml index 815fc44706..a1543e048d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ readme = "README.md" [tool.scikit-build] minimum-version = "0.4" cmake.targets = ["embedded_infinity_ext"] -cmake.build-type = "RelWithDebInfo" +cmake.build-type = "Release" build-dir = "build/{build_type}" wheel.py-api = "cp310"