Skip to content

Commit

Permalink
misc: compress binary
Browse files Browse the repository at this point in the history
  • Loading branch information
nichmor committed Nov 4, 2024
1 parent b556a4d commit 65fe2d7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/trampoline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ jobs:
mkdir -p trampolines
# Iterate through all files in trampolines directory and its subdirectories
find trampolines-binaries -type f -name 'pixi-trampoline-*' -exec mv -f {} trampolines/ \;
# now iterate through all files in trampolines directory and compress them using zstd
# and remove the original file
for file in trampolines/*; do
zstd "$file"
rm "$file"
done
ls -R trampolines/
- name: Upload binary artifact
Expand Down
3 changes: 2 additions & 1 deletion crates/pixi_trampoline/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ This is the configuration used by trampoline to set the env variables, and run t

# How to build it?
You can use `trampoline.yaml` workflow to build the binary for all the platforms and architectures supported by pixi.
If running it manually from forked repo, you can download and commit artifacts to your branch.
In case of building it manually, you can use the following command, after executing the `cargo build --release`, you need to compress it using `zstd`.
Then you can commit `compressed` artifacts to your branch.
If running it manually or triggered by changes in `crates/pixi_trampoline` from the main repo, they will be automatically committed to the branch.

0 comments on commit 65fe2d7

Please sign in to comment.