Merge branch 'only-set-max-optimzations-in-ci' into 'master'

Only apply max. optimizations in CI builds.

See merge request famedly/conduit!162
next
Timo Kösters 2021-08-24 17:54:17 +00:00
commit d5695fb9fe
2 changed files with 6 additions and 4 deletions

View File

@ -27,6 +27,9 @@ variables:
- cargohome - cargohome
- target/ - target/
key: "build_cache-$TARGET-release" key: "build_cache-$TARGET-release"
variables:
CARGO_PROFILE_RELEASE_LTO=true
CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
before_script: before_script:
- 'echo "Building for target $TARGET"' - 'echo "Building for target $TARGET"'
- 'mkdir -p cargohome && CARGOHOME="cargohome"' - 'mkdir -p cargohome && CARGOHOME="cargohome"'

View File

@ -124,16 +124,15 @@ lto = 'thin'
incremental = true incremental = true
[profile.release] [profile.release]
lto = true lto = 'thin'
incremental = true incremental = true
codegen-units = 1
codegen-units=32
# If you want to make flamegraphs, enable debug info: # If you want to make flamegraphs, enable debug info:
# debug = true # debug = true
# For releases also try to max optimizations for dependencies: # For releases also try to max optimizations for dependencies:
[profile.release.build-override] [profile.release.build-override]
opt-level = 3 opt-level = 3
codegen-units = 1
[profile.release.package."*"] [profile.release.package."*"]
opt-level = 3 opt-level = 3
codegen-units = 1