Skip to content

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Nov 14, 2023

We are caching on GHA the typst packages downloaded.

As documented at

the package are first search locally before downloading.

So by caching and restoring at each run, we insure that no remote access will be done for typst packages.

I did not put invalidation as it seems cache is quite low size, and also no easy way to invalidate the packages to cache.

Maybe this cache-typst action could be put in quarto-dev/quarto-actions instead of here, as it seems it could be useful to others. It could even be a Marketplace action maybe 🤔 there was none doing that (but this is easy to setup though)

@cderv cderv requested a review from cscheid November 14, 2023 11:53
@cderv cderv merged commit 80b3705 into main Nov 14, 2023
@cderv cderv deleted the gha/cache-typst-package branch November 14, 2023 13:21
Copy link
Collaborator

@cscheid cscheid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants