aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi <ansuelsmth@gmail.com>2023-05-28 03:12:54 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-10-24 17:12:04 +0200
commitd7e2468e13fb871026e1969845a1c5ccb9a1dcee (patch)
tree57424af7f5758fdd2ff3eb1f216640227f7b3b5b
parentc8d4694d2c94fec836533b7a0635c9d41b4b7c3a (diff)
downloadupstream-d7e2468e13fb871026e1969845a1c5ccb9a1dcee.tar.gz
upstream-d7e2468e13fb871026e1969845a1c5ccb9a1dcee.tar.bz2
upstream-d7e2468e13fb871026e1969845a1c5ccb9a1dcee.zip
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> (cherry picked from commit 07b52a8a25f261e3cee03f4980e4bc868e9ee5cc)
-rw-r--r--.github/workflows/build.yml7
-rw-r--r--.github/workflows/packages.yml1
2 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 27ed5cc218..0fbeb5b0f5 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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'
diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml
index 8ab07f1f07..58bbcd0131 100644
--- a/.github/workflows/packages.yml
+++ b/.github/workflows/packages.yml
@@ -53,4 +53,5 @@ jobs:
build_all_kmods: true
build_all_modules: true
build_full: true
+ ccache_type: packages