|
@@ -57,6 +57,9 @@ on:
|
|
|
use_ccache_cache:
|
|
use_ccache_cache:
|
|
|
type: boolean
|
|
type: boolean
|
|
|
default: true
|
|
default: true
|
|
|
|
|
+ ccache_type:
|
|
|
|
|
+ type: string
|
|
|
|
|
+ default: kernel
|
|
|
|
|
|
|
|
permissions:
|
|
permissions:
|
|
|
contents: read
|
|
contents: read
|
|
@@ -257,9 +260,9 @@ jobs:
|
|
|
uses: actions/cache/restore@v3
|
|
uses: actions/cache/restore@v3
|
|
|
with:
|
|
with:
|
|
|
path: openwrt/.ccache
|
|
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: |
|
|
restore-keys: |
|
|
|
- ccache-kernel-${{ inputs.target }}/${{ inputs.subtarget }}-
|
|
|
|
|
|
|
+ ccache-${{ inputs.ccache_type }}-${{ inputs.target }}/${{ inputs.subtarget }}-
|
|
|
|
|
|
|
|
- name: Download external toolchain/sdk
|
|
- 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'
|
|
if: inputs.build_toolchain == false && steps.parse-toolchain.outputs.toolchain-type != 'internal' && steps.parse-toolchain.outputs.toolchain-type != 'external_container'
|