From 665be88af0453f249701f2ff137bafe3d6cf5a43 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Fri, 24 Jan 2025 19:45:32 +0200 Subject: [PATCH] fix: try more option to reduce macosx build size #40 --- .github/workflows/build-amd64.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-amd64.yml b/.github/workflows/build-amd64.yml index 765d7e5..782b1b8 100644 --- a/.github/workflows/build-amd64.yml +++ b/.github/workflows/build-amd64.yml @@ -81,7 +81,13 @@ jobs: if: ${{ github.actor != 'dependabot[bot]' }} env: COMMON_CMAKE_ARGS: '-DBUILD_SHARED_LIBS=OFF -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra"' - MACOS_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=g++-11 -DCMAKE_C_COMPILER=gcc-11 -DZSTD_STATIC_LINKING_ONLY=1' + MACOS_CMAKE_ARGS: > + -DCMAKE_BUILD_TYPE=MinSizeRel + -DCMAKE_CXX_FLAGS_MINSIZEREL="-Os" + -DCMAKE_C_FLAGS_MINSIZEREL="-Os" + -DCMAKE_CXX_COMPILER=g++-11 + -DCMAKE_C_COMPILER=gcc-11 + -DZSTD_STATIC_LINKING_ONLY=1 LINUX_CMAKE_ARGS: '-DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_CXX_COMPILER=g++-10 -DCMAKE_C_COMPILER=gcc-10' RELEASE: '${{ matrix.release }}' suffix: '${{ matrix.clang-version }}_${{ matrix.os }}-amd64'