summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJonas Zohren <gitlab-jfowl-0ux98@sh14.de>2021-08-22 21:05:32 +0000
committerJonas Zohren <gitlab-jfowl-0ux98@sh14.de>2021-08-22 21:05:32 +0000
commitb6e755f67ec189a7c36272d7939cbf153536a83c (patch)
treef95f038159b36a6bc55cf7e79e499ab0deacac55 /.gitlab-ci.yml
parent4f8cf3bed494312100fe2ddb717030d5be9fe742 (diff)
downloadconduit-b6e755f67ec189a7c36272d7939cbf153536a83c.zip
Only apply max. optimizations in CI builds.
The average german man has a life expectancy of 78.7 years, or 689884.2 hours. Assuming that Timo is 20 years old, he has rougly 514564.2 hours left on planet earth. Also assuming that cross release builds took him 25 minutes before, but 2-2.5x of that with the current release compilation config he wasted roughly an hour waiting for it to complete. If he continued to work on Conduit for 20 more years (or 175320 hours), and makes a release compilation about once per day, this means 7305 hours or 304 days wasted waiting for the rust compiler. By cutting that back down to the original settings, he get's 182 days of his life back. That's about 0.63% of his remaining life. 182 joyful days he can spend with family and loved ones.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b7ea88e..6f6f56f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -27,6 +27,9 @@ variables:
- cargohome
- target/
key: "build_cache-$TARGET-release"
+ variables:
+ CARGO_PROFILE_RELEASE_LTO=true
+ CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
before_script:
- 'echo "Building for target $TARGET"'
- 'mkdir -p cargohome && CARGOHOME="cargohome"'