Skip to content

Duplicate of action/cache that uses our local file storage for speed

License

Notifications You must be signed in to change notification settings

inovait/action-localcache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local cache action

Action that attempts to behave similarly to the official actions/cache action, except that it hosts files on local Inova server, making it much faster to execute on Inova's hosted builds.

Use

- uses: inovait/action-localcache@v2
  with:
    folder: /root/.android
    key: ${{ runner.os }}-androidSDK

where:

  • folder is the folder being cached
  • key is unique key for this cache entry.

If cache entry with provided key exists, it will be downloaded and saved into a folder before build continues. After build finishes, cached folder will be uploaded back onto the cache server.

Cache entries are scoped to the repositories (every Github repository has its own cache, even if the keys overlap).

Building

npm run all

Since GitHub action should also store built action, you should run this command and commit built files in addition to just source changes.

About

Duplicate of action/cache that uses our local file storage for speed

Resources

License

Stars

Watchers

Forks

Packages

No packages published