CI: kernel: generate ccache cache on kernel push
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 8 Oct 2022 17:25:54 +0000 (19:25 +0200)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Sun, 4 Dec 2022 15:27:00 +0000 (16:27 +0100)
To actually use ccache cache on kernel test from pr, the kernel workflow
has to be run first from a push action.

This will permit as a side effect to test merged commits and catch commit
that may cause regression in kernel compilation even outside the github
system.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 23e946d1aded1fc21125704c0819146d5772d72b)

.github/workflows/kernel.yml

index 0ba8c27e2e7313f88dd5dee9b55ba2dbc5dcaa73..25d6d265ebd0526dfbb9496e8a0aaeb10af0b38f 100644 (file)
@@ -7,6 +7,12 @@ on:
       - 'include/kernel-*'
       - 'package/kernel/**'
       - 'target/linux/generic/**'
+  push:
+    paths:
+      - '.github/workflows/kernel.yml'
+      - 'include/kernel-*'
+      - 'package/kernel/**'
+      - 'target/linux/generic/**'
 
 permissions:
   contents: read