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>
Tue, 24 Oct 2023 15:12:05 +0000 (17:12 +0200)
commitf7e4f8cbbf8c5ae8602a77112cb2aacb067fce05
treeba7baa50d60261a14ef127b4e59a44258bfcb005
parent5bfa66bcf3bfcadea059bae1f1d18b388318caa4
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>
(cherry picked from commit ebbc806d30502ff003ae7a19098c6afaaf1295a5)
.github/workflows/build.yml
.github/workflows/kernel.yml
.github/workflows/packages.yml
.github/workflows/upload-file-s3.yml [new file with mode: 0644]