Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

wezel: Use bundle-linux for size measurements (#65234)

Piotr Osiewiczba8159b4d324
diff --git a/.github/workflows/wezel.yml b/.github/workflows/wezel.yml
index a0535b810be..72f132307f5 100644
--- a/.github/workflows/wezel.yml
+++ b/.github/workflows/wezel.yml
@@ -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 }}
diff --git a/.wezel/experiments/binary-size/experiment.toml b/.wezel/experiments/binary-size/experiment.toml
index 971fc50845c..6a9c7668f88 100644
--- a/.wezel/experiments/binary-size/experiment.toml
+++ b/.wezel/experiments/binary-size/experiment.toml
@@ -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" }