mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-24 23:53:02 +00:00
CI: build: add option to define custom ccache cache type
Add new input to define custom ccache cache type. This is useful to use a different ccache cache for some special workflow that may do more test than simple kernel compilation. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
b9a41c1e84
commit
07b52a8a25
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -57,6 +57,9 @@ on:
|
||||
use_ccache_cache:
|
||||
type: boolean
|
||||
default: true
|
||||
ccache_type:
|
||||
type: string
|
||||
default: kernel
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
@ -257,9 +260,9 @@ jobs:
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: openwrt/.ccache
|
||||
key: ccache-kernel-${{ inputs.target }}/${{ inputs.subtarget }}-${{ hashFiles('openwrt/include/kernel-**') }}
|
||||
key: ccache-${{ inputs.ccache_type }}-${{ inputs.target }}/${{ inputs.subtarget }}-${{ hashFiles('openwrt/include/kernel-**') }}
|
||||
restore-keys: |
|
||||
ccache-kernel-${{ inputs.target }}/${{ inputs.subtarget }}-
|
||||
ccache-${{ inputs.ccache_type }}-${{ inputs.target }}/${{ inputs.subtarget }}-
|
||||
|
||||
- name: Download external toolchain/sdk
|
||||
if: inputs.build_toolchain == false && steps.parse-toolchain.outputs.toolchain-type != 'internal' && steps.parse-toolchain.outputs.toolchain-type != 'external_container'
|
||||
|
1
.github/workflows/packages.yml
vendored
1
.github/workflows/packages.yml
vendored
@ -53,4 +53,5 @@ jobs:
|
||||
build_all_kmods: true
|
||||
build_all_modules: true
|
||||
build_full: true
|
||||
ccache_type: packages
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user