mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Include cargo-timings
report in release build (#1110)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
7d11a379c4
commit
e79bb2ab10
2 changed files with 10 additions and 1 deletions
8
.github/workflows/release-build.yml
vendored
8
.github/workflows/release-build.yml
vendored
|
@ -12,6 +12,7 @@ on:
|
|||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
|
||||
JUST_TIMINGS: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
@ -82,6 +83,13 @@ jobs:
|
|||
path: packages/cargo-binstall-*
|
||||
retention-days: 1
|
||||
|
||||
- name: Upload timings
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ matrix.t }}-cargo-timings
|
||||
path: target/cargo-timings
|
||||
retention-days: 1
|
||||
|
||||
lipo:
|
||||
needs: build
|
||||
name: universal-apple-darwin
|
||||
|
|
3
justfile
3
justfile
|
@ -9,6 +9,7 @@ default-features := env_var_or_default("JUST_DEFAULT_FEATURES", "")
|
|||
override-features := env_var_or_default("JUST_OVERRIDE_FEATURES", "")
|
||||
glibc-version := env_var_or_default("GLIBC_VERSION", "")
|
||||
use-auditable := env_var_or_default("JUST_USE_AUDITABLE", "")
|
||||
timings := env_var_or_default("JUST_TIMINGS", "")
|
||||
|
||||
export BINSTALL_LOG_LEVEL := if env_var_or_default("RUNNER_DEBUG", "0") == "1" { "debug" } else { "info" }
|
||||
|
||||
|
@ -145,7 +146,7 @@ target-glibc-ver-postfix := if glibc-version != "" {
|
|||
""
|
||||
}
|
||||
|
||||
cargo-build-args := (if for-release != "" { " --release" } else { "" }) + (" --target ") + (target) + (target-glibc-ver-postfix) + (cargo-buildstd) + (if extra-build-args != "" { " " + extra-build-args } else { "" }) + (cargo-no-default-features) + (cargo-split-debuginfo) + (if cargo-features != "" { " --features " + cargo-features } else { "" }) + (win-arm64-ring16)
|
||||
cargo-build-args := (if for-release != "" { " --release" } else { "" }) + (" --target ") + (target) + (target-glibc-ver-postfix) + (cargo-buildstd) + (if extra-build-args != "" { " " + extra-build-args } else { "" }) + (cargo-no-default-features) + (cargo-split-debuginfo) + (if cargo-features != "" { " --features " + cargo-features } else { "" }) + (win-arm64-ring16) + (if timings != "" { " --timings" } else { "" })
|
||||
export RUSTFLAGS := (linker-plugin-lto) + (rustc-gcclibs) + (rustc-miropt) + (rust-lld) + (rustc-icf)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue