From 504ff5da5373bb8d48a63f4a1eb946b5f8b5a64a Mon Sep 17 00:00:00 2001 From: Martin Frost Date: Sun, 9 Apr 2023 00:16:16 +0200 Subject: [PATCH] Strip debug-info on releases This makes the Linux binaries a lot smaller. --- .github/workflows/build_deb.yml | 2 ++ .github/workflows/ci.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/build_deb.yml b/.github/workflows/build_deb.yml index 291a516..fe1fa10 100644 --- a/.github/workflows/build_deb.yml +++ b/.github/workflows/build_deb.yml @@ -6,6 +6,8 @@ jobs: build_deb: name: Build .deb package runs-on: ubuntu-latest + env: + RUSTFLAGS: "-C strip=debuginfo" steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@stable diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 395df04..065b96c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,6 +21,8 @@ jobs: needs: lint_and_test if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/build-') }} name: Build package + env: + RUSTFLAGS: "-C strip=debuginfo" strategy: matrix: os: