CI: add support for getting ccache cache from S3
authorChristian Marangi <ansuelsmth@gmail.com>
Tue, 30 May 2023 16:57:42 +0000 (18:57 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 31 May 2023 11:22:05 +0000 (13:22 +0200)
commitebbc806d30502ff003ae7a19098c6afaaf1295a5
tree427475e21b715735f1c1fa109bed1a4e53de32dd
parentff66a7c1c0f012324c0d2d90f047e6976c4fba11
CI: add support for getting ccache cache from S3

Add support for getting ccache cache from S3.
ccache is archieved in a tar and downloaded from S3 Cloud Storage.

For push events, ccache is then uplodaed back to S3 to refresh and have
a ccache cache always fresh.

An additional workflow is added to upload files to an S3 Cloud Storage
from artifacts uplodaed to github. The minio tool is used to upload
files to S3.

If the ccache can't be downloaded from s3, we fallback to github cache
system.

Also limit s3 upload to the openwrt repository since external fork won't
have (obviously) the required secrtes to upload data to the S3 Cloud
Storage.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
.github/workflows/build.yml
.github/workflows/kernel.yml
.github/workflows/packages.yml
.github/workflows/upload-file-s3.yml [new file with mode: 0644]