Strip debug-info on releases

This makes the Linux binaries a lot smaller.
This commit is contained in:
Martin Frost 2023-04-09 00:16:16 +02:00
parent 142c554aa3
commit 504ff5da53
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,8 @@ jobs:
build_deb: build_deb:
name: Build .deb package name: Build .deb package
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUSTFLAGS: "-C strip=debuginfo"
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable - uses: dtolnay/rust-toolchain@stable

View File

@ -21,6 +21,8 @@ jobs:
needs: lint_and_test needs: lint_and_test
if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/build-') }} if: ${{ github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/build-') }}
name: Build package name: Build package
env:
RUSTFLAGS: "-C strip=debuginfo"
strategy: strategy:
matrix: matrix:
os: os: