Skip to content

Commit 24260dc

Browse files
oech3oech3
authored andcommitted
make.yml: reduce binary size
1 parent c90f1ea commit 24260dc

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/make.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: make
22

33
# spell-checker:ignore (abbrev/names) CACHEDIR taiki
4-
# spell-checker:ignore (env/flags) CHERE RUSTDOCFLAGS RUSTFLAGS CARGOFLAGS CLEVEL
4+
# spell-checker:ignore (env/flags) CHERE RUSTDOCFLAGS RUSTFLAGS CARGOFLAGS CLEVEL relocs
55
# spell-checker:ignore (jargon) deps softprops toolchain
66
# spell-checker:ignore (people) dawidd
77
# spell-checker:ignore (shell/tools) bsdtar nextest pacman sccache zstd
@@ -34,6 +34,8 @@ concurrency:
3434
jobs:
3535
build_makefile:
3636
name: Build/Makefile and measure binary size
37+
env:
38+
RUSTFLAGS: "-C force-unwind-tables=no -C strip=symbols -Clink-arg=-z -Clink-arg=pack-relative-relocs"
3739
permissions:
3840
contents: write # Publish individual binaries
3941
runs-on: ${{ matrix.job.os }}
@@ -144,7 +146,6 @@ jobs:
144146
run: |
145147
# Check that libstdbuf is present too
146148
mv target/release/deps/libstdbuf.so -t /tmp/individual/usr/local/bin
147-
strip -s /tmp/individual/usr/local/bin/*
148149
ZSTD_CLEVEL=19 tar --zstd -caf individual-x86_64-unknown-linux-gnu.tar.zst -C /tmp/individual/usr/local bin
149150
- name: Publish
150151
uses: softprops/action-gh-release@v3

0 commit comments

Comments
 (0)