Skip to content

Commit

Permalink
Use restore/save github action to speed up the CI testing (#1783)
Browse files Browse the repository at this point in the history
This PR addresses a caching issue in our CI by streamlining each
operating system's build and test processes, reducing CI time. 🤞 Also,
our caching strategy has been updated with the new restore/save actions.
For example, we aim to cache the .stack folder, and if the stack build
is successful, the .stack-build. The building documentation job
continues depending on the Linux build. Upon merging this PR, we get
back to the point where the CI maintain a cache for each OS to be shared
among all PRs, significantly reducing CI testing time. The expected
scenario is as follows. The CI can take, on average, 35' in Linux to
build and test everything. Using caching, that time is reduced to less
than 10'. macOS is a different story. It can easily take one hour, and
even more, the first time to build and test the project. After that, it
might take an average of 20'.

- Caching strategies
[descriptions](https://github.com/actions/cache/blob/main/caching-strategies.md#saving-cache-even-if-the-build-fails)
- Closes #1776
  • Loading branch information
jonaprieto authored Jan 31, 2023
1 parent 4be4d58 commit a5623c5
Showing 1 changed file with 216 additions and 229 deletions.
Loading

0 comments on commit a5623c5

Please sign in to comment.