CI: build: limit cache save/delete only on push events
authorChristian Marangi <ansuelsmth@gmail.com>
Sun, 28 May 2023 07:11:29 +0000 (09:11 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Tue, 24 Oct 2023 15:12:05 +0000 (17:12 +0200)
commit5bfa66bcf3bfcadea059bae1f1d18b388318caa4
treef96b38b98fb8ead17cc502711cd2e5894f45360d
parent15f4d6b2441e47ed63df961c43515cba11da3a7b
CI: build: limit cache save/delete only on push events

Limit ccache cache save/delete only on push events. Saving ccache
cache for pull request will result in bloat and refreshing ccache is not
possible due to security measure on enforcing read permission on
pull_request events.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit ff66a7c1c0f012324c0d2d90f047e6976c4fba11)
.github/workflows/build.yml