From 7c5d9bd53f99f6156bde72d68f4921bb18ebb1df Mon Sep 17 00:00:00 2001 From: Marco Calautti Date: Sun, 31 Dec 2023 20:05:09 +0100 Subject: [PATCH] Minimize size of windows binary --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 76bd8c5..015ed7b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,6 +13,7 @@ on: env: BUILD_TYPE: Release + BUILD_TYPE_MIN_SIZE: MinSizeRel wxBUILD_SHARED: OFF wxBUILD_USE_STATIC_RUNTIME: ON @@ -70,7 +71,7 @@ jobs: - if: startsWith(matrix.os, 'windows') name: Configure CMake Windows - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DwxBUILD_SHARED=${{env.wxBUILD_SHARED}} -DwxBUILD_USE_STATIC_RUNTIME=${{env.wxBUILD_USE_STATIC_RUNTIME}} + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE_MIN_SIZE}} -DwxBUILD_SHARED=${{env.wxBUILD_SHARED}} -DwxBUILD_USE_STATIC_RUNTIME=${{env.wxBUILD_USE_STATIC_RUNTIME}} - if: startsWith(matrix.os, 'ubuntu') name: Configure CMake Linux