application-services icon indicating copy to clipboard operation
application-services copied to clipboard

Add sccache to nimbus-fml build on circle-ci

Open jhugman opened this issue 4 years ago • 0 comments

Originally posted by @tarikeshaq in https://github.com/mozilla/application-services/pull/4701#discussion_r768868181

Definitely for a follow up... Probably not be worth it unless the fml takes a long time to compile, which it doesn't now - 5 mins is not bad at all:

We might be able to cut down some CI time by using sccache:

- restore_cache:
    name: Restore sccache cache
    key: fml-sccache-cache-macos-{{ arch }}
- full-checkout
- install rust
- setup-rust-target-version
- setup-sccache

.. rest of commands
- save_cache:
    name: Save sccache cache
    key: fml-sccache-cache-macos-{{ arch }}-{{ epoch }}
    paths:
      - "~/Library/Caches/Mozilla.sccache"
- sccache-stats-and-logs

┆Issue is synchronized with this Jira Task

jhugman avatar Dec 14 '21 19:12 jhugman