Skip to content

n-soda/actions-install-and-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions-install-and-cache

actions-install-and-cache

This Github action execute given command for target, and cache installd files for later use. When executed next time with same package list, and any other environment are not changed, updated files are extracted from the cached archive.

This action uses actions/cache and produce different cache key for different operating system environment. If you need to use different cache for other reason, provide a key by parameter.

Output is same as @actions/cache.

Usage

# inputs:
#   command:   { required: true,  type: string }
#   target:    { required: true,  type: string }
#   directory: { required: true,  type: string }
#   cache:     { required: false, type: string, default: yes }
#   cache-gen: { required: false, type: string, default: v1 }
#   key:       { required: false, type: string }

- uses: office-tecoli/actions-install-and-cache@v0
  with:

    # install command
    command: ''

    # install target
    target: ''

    # install directory
    # multiple directories can be specified
    directory: ''

    # Cache strategey
    #
    # yes:      activate cache
    # no:       no cache
    # workflow: effective within same workflow (mainly for test)
    #
    cache: yes

    # Cache generation.
    # You can set any string to this parameter and different generation
    # number produces different cache key.
    #
    # Default: v1
    cache-gen: v1

    # Additional cache key
    key: ''

Example

- uses: office-tecoli/actions-install-and-cache@v0
  with:
    command: brew install
    target:  rcs cvs
    directory: /usr/local

See Also

@actions-use-brew-tools uses this action as a backend of its work.

About

Generic GitHub Action for install/cache files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 51.0%
  • Makefile 49.0%