yeslogic / allsorts

Font parser, shaping engine, and subsetter implemented in Rust
https://yeslogic.com/blog/allsorts-rust-font-shaping-engine/
Apache License 2.0
721 stars 21 forks source link

Cache less in Travis #68

Closed wezm closed 2 years ago

wezm commented 2 years ago

The default cache: cargo setting caches $HOME/.cargo and $TRAVIS_BUILD_DIR/target. This is producing a 38Gb cache archive, which is slow to download and extract (~3 mins) and slow to compress and upload. I think ultimately it's slowing builds down. A build is currently taking about 20 mins. This change removes the target directory from the cache to see how that affects things.

Edit actually the 38Gb might be the sum of all platform and version caches for a given branch. Nonetheless the 3 mins is accurate.

wezm commented 2 years ago

Merged manually: d746503

wezm commented 2 years ago

Before:

Screenshot 2022-06-09 at 11-08-02 Build #200 - yeslogic_allsorts - Travis CI

After:

Screenshot 2022-06-09 at 11-07-38 Build #201 - yeslogic_allsorts - Travis CI

After (cache primed):

image