Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Semaphore CI example with better caching #336

Open
bahmutov opened this issue Dec 13, 2019 · 0 comments
Open

Update Semaphore CI example with better caching #336

bahmutov opened this issue Dec 13, 2019 · 0 comments

Comments

@bahmutov
Copy link
Contributor

Should install dependencies once and use them in each parallel job

This is the recommended way of achieving this is to install dependencies/store cache in a block and then restore cache and run tests in the parallel jobs. The recipe would be the following:

  • download the dependencies in block A
  • cache store dependencies in block A
  • create a prologue that cache restore the cached dependencies. if using parallelism this prologue will run for every job
  • run your tests in the block with parallelism
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants