From 7ae83df5a56056f7b52f632ba8464a6652674575 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Thu, 16 Feb 2023 16:31:48 +0800 Subject: [PATCH] GHA CI: compress debug symbols The result binary is smaller. --- .github/workflows/ci_macos.yaml | 2 ++ .github/workflows/ci_ubuntu.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci_macos.yaml b/.github/workflows/ci_macos.yaml index 87a3726d6..181331069 100644 --- a/.github/workflows/ci_macos.yaml +++ b/.github/workflows/ci_macos.yaml @@ -87,6 +87,7 @@ jobs: if: ${{ startsWith(matrix.qt_version, 5) }} run: | CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \ + LDFLAGS="$LDFLAGS -gz" \ cmake \ -B build \ -G "Ninja" \ @@ -105,6 +106,7 @@ jobs: if: ${{ startsWith(matrix.qt_version, 6) }} run: | CXXFLAGS="$CXXFLAGS -Wno-gnu-zero-variadic-macro-arguments -Werror -Wno-error=deprecated-declarations" \ + LDFLAGS="$LDFLAGS -gz" \ cmake \ -B build \ -G "Ninja" \ diff --git a/.github/workflows/ci_ubuntu.yaml b/.github/workflows/ci_ubuntu.yaml index 02d857782..2d1f1b8e3 100644 --- a/.github/workflows/ci_ubuntu.yaml +++ b/.github/workflows/ci_ubuntu.yaml @@ -69,6 +69,7 @@ jobs: if: ${{ startsWith(matrix.qt_version, 5) }} run: | CXXFLAGS="$CXXFLAGS -Werror -Wno-error=deprecated-declarations" \ + LDFLAGS="$LDFLAGS -gz" \ cmake \ -B build \ -G "Ninja" \ @@ -87,6 +88,7 @@ jobs: if: ${{ startsWith(matrix.qt_version, 6) }} run: | CXXFLAGS="$CXXFLAGS -Werror" \ + LDFLAGS="$LDFLAGS -gz" \ cmake \ -B build \ -G "Ninja" \