diff --git a/.cargo/config.toml b/.cargo/config.toml index 16ae724..c63a35f 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -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 - diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2703e2c..4ffdae8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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"