What paths should we cache in CI? #18752
-
When using Bun, the - uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }} Is that correct and what you as maintainers of Bun would recommend, too? If yes, why does |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
By caching On the other hand, by caching Bun’s cache, Bun will regenerate the Another use case to consider is lifecycle scripts. If you have pre- or post-install scripts, caching the |
Beta Was this translation helpful? Give feedback.
-
Yes but probably - uses: actions/cache@v4
with:
path: |
~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
Generally, |
Beta Was this translation helpful? Give feedback.
Yes but probably
**/bun.lock
nowadays that we default to bun.lock.Generally,
bun install
is faster than the github actions cache.