11name : CICD
22
33# spell-checker:ignore (abbrev/names) CACHEDIR CICD CodeCOV MacOS MinGW MSVC musl taiki
4- # spell-checker:ignore (env/flags) Awarnings Ccodegen Coverflow Cpanic Dwarnings RUSTDOCFLAGS RUSTFLAGS Zpanic CARGOFLAGS
4+ # spell-checker:ignore (env/flags) Awarnings Ccodegen Coverflow Cpanic Dwarnings RUSTDOCFLAGS RUSTFLAGS Zpanic CARGOFLAGS CLEVEL
55# spell-checker:ignore (jargon) SHAs deps dequote softprops subshell toolchain fuzzers dedupe devel profdata
66# spell-checker:ignore (people) Peltoche rivy dtolnay Anson dawidd
77# spell-checker:ignore (shell/tools) binutils choco clippy dmake esac fakeroot fdesc fdescfs gmake grcov halium lcov libclang libfuse libssl limactl mkdir nextest nocross pacman popd printf pushd redoxer rsync rustc rustfmt rustup shopt sccache utmpdump xargs zstd
@@ -477,6 +477,8 @@ jobs:
477477 name : Binary sizes
478478 needs : [ min_version, deps ]
479479 runs-on : ${{ matrix.job.os }}
480+ permissions :
481+ contents : write
480482 env :
481483 SCCACHE_GHA_ENABLED : " true"
482484 RUSTC_WRAPPER : " sccache"
@@ -499,12 +501,23 @@ jobs:
499501 ## Install dependencies
500502 sudo apt-get update
501503 sudo apt-get install libselinux1-dev libsystemd-dev
502- - name : " `make install`"
504+ - name : " `make install PROFILE=release-fast `"
503505 shell : bash
504506 run : |
505- ## `make install`
506- RUSTFLAGS="${RUSTFLAGS} -C strip=symbols" make install DESTDIR=target/size-release/
507- RUSTFLAGS="${RUSTFLAGS} -C strip=symbols" make install MULTICALL=y LN="ln -vf" DESTDIR=target/size-multi-release/
507+ RUSTFLAGS="${RUSTFLAGS} -C strip=symbols" make install PROFILE=release-fast MANPAGES=n COMPLETIONS=n DESTDIR=target/size-release/
508+ RUSTFLAGS="${RUSTFLAGS} -C strip=symbols" make install PROFILE=release-fast MANPAGES=n COMPLETIONS=n MULTICALL=y LN="ln -vf" DESTDIR=target/size-multi-release/
509+ ZSTD_CLEVEL=19 tar --zstd -caf individual-x86_64-unknown-linux-gnu.tar.zst -C target/size-release/usr/local bin
510+ - name : Publish
511+ uses : softprops/action-gh-release@v2
512+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
513+ with :
514+ tag_name : latest-commit
515+ draft : false
516+ prerelease : true
517+ files : |
518+ individual-x86_64-unknown-linux-gnu.tar.zst
519+ env :
520+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
508521 - name : Test for hardlinks
509522 shell : bash
510523 run : |
0 commit comments