mirror of
https://github.com/zed-industries/zed.git
synced 2026-10-14 05:37:47 +00:00
wezel: Use bundle-linux for size measurements (#65234)
## Summary Right now we're measuring size of artifacts from `cargo b --release`, which doesn't match what we're actually distributing. ## Testing Manually test your changes; report results, mention platforms if relevant. How can reviewers test this easily? Include setup and steps. ## Self-review - [ ] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [ ] Tests cover the new or changed behavior. Release Notes: - N/A
This commit is contained in:
parent
53421b7f3f
commit
ba8159b4d3
2 changed files with 10 additions and 14 deletions
2
.github/workflows/wezel.yml
vendored
2
.github/workflows/wezel.yml
vendored
|
|
@ -35,6 +35,8 @@ jobs:
|
|||
ref: ${{ inputs.commit_sha }}
|
||||
- name: Install Linux build dependencies
|
||||
run: ./script/linux
|
||||
- name: Download WASI SDK
|
||||
run: ./script/download-wasi-sdk
|
||||
- uses: wezel-build/gh-action@49be2cba2eaa12f1b99ae1c3ee9af3c815cb3125 # v1.0.1
|
||||
with:
|
||||
token: ${{ secrets.WEZEL_RUNNER_TOKEN }}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,13 @@
|
|||
#:schema ../../schema.json
|
||||
|
||||
description = "Measures stripped and unstripped release binary size"
|
||||
description = "Measures the size of the Zed binary shipped in the Linux bundle"
|
||||
|
||||
[step.cargo.build-release]
|
||||
command = "build"
|
||||
build_target = ["zed"]
|
||||
profile = "release"
|
||||
[step.exec.bundle-linux]
|
||||
cmd = "./script/bundle-linux --skip-sentry"
|
||||
|
||||
[step.filesize.measure-unstripped]
|
||||
glob = "target/release/zed"
|
||||
summary.unstripped-binary-size = { outcome = "target/release/zed" }
|
||||
[step.exec.extract-bundled-binary]
|
||||
cmd = "editor_path=$(tar -tzf target/release/zed-linux-$(uname -m).tar.gz | grep '/libexec/zed-editor$') && tar -xOzf target/release/zed-linux-$(uname -m).tar.gz \"$editor_path\" > target/release/zed-bundled"
|
||||
|
||||
[step.exec.strip-copy]
|
||||
cmd = "cp target/release/zed target/release/zed-stripped && strip target/release/zed-stripped"
|
||||
|
||||
[step.filesize.measure-stripped]
|
||||
glob = "target/release/zed-stripped"
|
||||
summary.stripped-binary-size = { outcome = "target/release/zed-stripped" }
|
||||
[step.filesize.measure-bundled]
|
||||
glob = "target/release/zed-bundled"
|
||||
summary.bundled-binary-size = { outcome = "target/release/zed-bundled" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue