Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 1.22 KB

File metadata and controls

59 lines (35 loc) · 1.22 KB

Cache Wrt Build action

Licensed Workflow Status

This action caches builds to speed up openwrt compilation.

Inputs

ccache

Check if to cache ccache. Default false.

toolchain

Check if to cache toolchain. Default true.

skip

Check if to skip the compilation of toolchain. Default true.

clean

Set to clean cache. Default false.

prefix

Path prefix to openwrt build directory. Default ''.

mixkey

Mix a key to identify a cache when you build openwrt for different architecture. Default ''.

skip_saving

Skip saving. Default false.

extra_paths

Additional cache directories to include (one per line, can specify multiple). Default ''. Relative paths are resolved against the directory set by prefix (i.e. the openwrt build root); absolute paths are also supported.

Output

hit

Indicate cache found.

Example usage

uses: klever1988/cachewrtbuild@main
with:
  ccache: true
  mixkey: 'ramips'
  prefix: 'openwrt'
  extra_paths: |
    path/to/extra/dir1
    path/to/extra/dir2