Merge pull request #434 from oopsbagel/profile-release-strip-debuginfo

cargo/config: strip debuginfo from --release bins for a significantly smaller installer size
This commit is contained in:
oopsbagel
2025-06-28 11:00:28 +00:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ rustflags = ["-C", "target-feature=+crt-static"]
# keep line numbers in stack traces for non-firmware binaries
[profile.release]
debug = "limited"
strip = "debuginfo"
# optimizations to reduce the binary size of firmware binaries
[profile.firmware]
@@ -38,4 +39,3 @@ lto = true
codegen-units = 1
panic = "abort"
debug = false

View File

@@ -37,7 +37,7 @@ jobs:
lcommit=${{ github.event.pull_request.base.sha || 'origin/main' }}
# If we are on main, or if these workflow files are being changed, run everything
if [ ${{ github.ref }} = 'refs/heads/main' ] || git diff --name-only $lcommit..HEAD | grep -qe ^.github/workflows/
if [ ${{ github.ref }} = 'refs/heads/main' ] || git diff --name-only $lcommit..HEAD | grep -qe ^.github/workflows/ -e ^.cargo
then
echo "building everything"
echo code_count=forced >> "$GITHUB_OUTPUT"