build: Strip the binaries before using/releasing them
Stripping the release build for glibc shrinks the size considerably: $ du -h target/release/cloud-hypervisor 8.5M target/release/cloud-hypervisor $ strip target/release/cloud-hypervisor $ du -h target/release/cloud-hypervisor 5.2M target/release/cloud-hypervisor Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
a4d23c3cf3
commit
6fde2d18a6
2 changed files with 10 additions and 0 deletions
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
|
@ -23,6 +23,8 @@ jobs:
|
|||
run: cargo build --release --target=x86_64-unknown-linux-gnu
|
||||
- name: Static Build
|
||||
run: cargo build --release --target=x86_64-unknown-linux-musl
|
||||
- name: Strip cloud-hypervisor binaries
|
||||
run: strip target/*/release/cloud-hypervisor
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue