diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-05-28 02:55:26 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-10-24 17:12:03 +0200 |
commit | fad08e8e23bc1db8224a7f34c5f3775b59cfb577 (patch) | |
tree | 0cd010c11be5d143c1ee8c61d60e8a004a4ad38d /.github/workflows/label-kernel.yml | |
parent | c5441d24d9c51e597fc01cdca860f6fe5f4794d9 (diff) | |
download | upstream-fad08e8e23bc1db8224a7f34c5f3775b59cfb577.tar.gz upstream-fad08e8e23bc1db8224a7f34c5f3775b59cfb577.tar.bz2 upstream-fad08e8e23bc1db8224a7f34c5f3775b59cfb577.zip |
CI: build: add job to remove previous ccache cache if already exist
Github Actions cache doesn't permit to overwrite cache if it does
already exist. As a trick to refresh and have fresh ccache pool,
delete the ccache cache if it does exist with the help of Github REST
API. An additional permission is needed to access this API. Add this
permittion to each user of the build workflow.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 203cc0a7ef0bbf3b5a19db3caa96e91963ec154c)
Diffstat (limited to '.github/workflows/label-kernel.yml')
-rw-r--r-- | .github/workflows/label-kernel.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/label-kernel.yml b/.github/workflows/label-kernel.yml index 67faaddfcd..29a9d79558 100644 --- a/.github/workflows/label-kernel.yml +++ b/.github/workflows/label-kernel.yml @@ -30,6 +30,7 @@ jobs: permissions: contents: read packages: read + actions: write uses: ./.github/workflows/build.yml with: container_name: toolchain @@ -44,6 +45,7 @@ jobs: permissions: contents: read packages: read + actions: write uses: ./.github/workflows/check-kernel-patches.yml with: target: ${{ needs.set_target.outputs.target }} |