Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0bb1d7b
Very basic cache restoring code #235
flosell May 29, 2025
44a45a4
Include ASDF version in restore key so we never restore a cache if th…
flosell May 29, 2025
ac989f5
Use only the version number for caching, remove duplication of cache …
flosell May 29, 2025
948c9eb
Use only the version, not the newly introduced revision in cache key …
flosell May 29, 2025
0638e38
Recover cache before installing plugins since those are also cached #235
flosell May 29, 2025
b55d64c
Set up ASDF explicitly when installing tools #235
flosell May 29, 2025
9a14179
Move restoreCaching functionality into separate file to improve reada…
flosell May 29, 2025
33e243a
Boilerplate for saving cache as a post-action #235
flosell May 29, 2025
335170c
Add additional TODO for caching functionality #235
flosell May 29, 2025
e1a05aa
Make asdf version call in caching functionality silent, it's an inter…
flosell May 29, 2025
300dfed
Implement saving cache #235
flosell May 29, 2025
0066de9
Relaxed error handling for failing to save cache - shouldn't break th…
flosell May 29, 2025
39e661c
Improve info messaging for cache restore #235
flosell May 29, 2025
860f66a
Remove redundant log messages for caching #235
flosell May 29, 2025
f48978c
Only save cache if the job ran successfully #235
flosell May 29, 2025
5e30ec1
Only save cache if there's been changes #235
flosell May 29, 2025
976c051
Feature-flag caching #235
flosell May 29, 2025
607fc15
Add missing input definition for enable_cache feature flag #235
flosell May 29, 2025
578311e
Always run install even when there's something cached, so missing thi…
flosell May 29, 2025
4416e65
Extract tool-versions logic from plugins-add into separate function t…
flosell May 31, 2025
5bb14d4
Reshim if cache was restored #235
flosell May 31, 2025
de69080
Move cacheEnabled functionality into index.ts to make the flow more o…
flosell May 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ steps:

Options are:

| Name | Required | Default | Description |
| -------------- | -------- | -------------------- | ------------------------------------------------------------------------------------------------------------- |
| asdf_branch | false | master (i.e. latest) | asdf branch to clone |
| skip_install | false | false | setup env without installing asdf |
| tool_versions | false | | If present, this value will be written to the .tool-versions file. |
| before_install | false | | Bash script to run after plugins are installed but before `asdf install`.<br><br>e.g., to install npm keyring |
| Name | Required | Default | Description |
|----------------| -------- |----------------------|-----------------------------------------------------------------------------------------------------------------------------------------|
| asdf_branch | false | master (i.e. latest) | asdf branch to clone |
| skip_install | false | false | setup env without installing asdf |
| tool_versions | false | | If present, this value will be written to the .tool-versions file. |
| before_install | false | | Bash script to run after plugins are installed but before `asdf install`.<br><br>e.g., to install npm keyring |
| enable_cache | false | false | If set to true, plugins and installs will be cached and reused in subsequent runs. Useful for slow plugins e.g. those build from source |

### Plugin Test

Expand Down
6 changes: 6 additions & 0 deletions install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ author: Victor Borja <[email protected]>
runs:
using: node20
main: main.js
post-if: success()
post: post.js
inputs:
tool_versions:
description:
Expand All @@ -25,6 +27,10 @@ inputs:
description: setup env without installing asdf
required: false
default: false
enable_cache:
description: cache asdf plugins and installs
required: false
default: false
github_token:
description: Token used to avoid rate limit when asdf calls the GitHub API
required: false
Expand Down
Loading
Loading