Skip to content

Commit 9bb92a1

Browse files
committed
make.yml: reduce binary size
1 parent c90f1ea commit 9bb92a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/make.yml

Lines changed: 2 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
@@ -11,6 +11,7 @@ env:
1111
PROJECT_NAME: coreutils
1212
PROJECT_DESC: "Core universal (cross-platform) utilities"
1313
PROJECT_AUTH: "uutils"
14+
RUSTFLAGS: "-C force-unwind-tables=no -C strip=symbols -Clink-arg=-z -Clink-arg=pack-relative-relocs"
1415
CARGO_INCREMENTAL: 0
1516
# * style job configuration
1617
STYLE_FAIL_ON_FAULT: true ## (bool) fail the build if a style job contains a fault (error or warning); may be overridden on a per-job basis
@@ -144,7 +145,6 @@ jobs:
144145
run: |
145146
# Check that libstdbuf is present too
146147
mv target/release/deps/libstdbuf.so -t /tmp/individual/usr/local/bin
147-
strip -s /tmp/individual/usr/local/bin/*
148148
ZSTD_CLEVEL=19 tar --zstd -caf individual-x86_64-unknown-linux-gnu.tar.zst -C /tmp/individual/usr/local bin
149149
- name: Publish
150150
uses: softprops/action-gh-release@v3

0 commit comments

Comments
 (0)