SciML / SciMLDocs

Global documentation for the Julia SciML Scientific Machine Learning Organization
https://docs.sciml.ai
MIT License
53 stars 39 forks source link

ci: perform only shallow checkouts of the repository #198

Closed thazhemadam closed 8 months ago

thazhemadam commented 8 months ago

Given the size of the repository, we spend an inordinate time in CI for each step just cloning the repository (sometimes upto ~7 mins^1); an inefficiency that is obviously problematic. Fix this, by performing only a shallow checkout of the repository using the hasura/smooth-checkout plugin. The steps defined in the WebUI have also been updated to do the same. This brings down the repository checkout time significantly, to just 1-2s^2.

Since the documentation workflow will require switching branches and pushing to the repository, additionally fetch just the HEAD of gh-pages in that workflow before actually building and trying to deploy the documentation.