Store intermediate job on MacOs

Hi,

I’m trying to execute an action that donwloads a big file (Qt) to compile a library for iOS on a VM MacOs X

Is there a way to save an image with my environment part, like Qt and restore after when I have to recompile the library?

On linux I used the docker images with the intermediate status.

Thank you very much

Angelo

Hi @manang ,

Docker image/action is ONLY supported on linux github hosted runner, you cannot use docker image on macOS hosted runner.

You can try to use self-hosted macos runner and store the image locally as an alternative.

Thanks.

Hi, thanks for your answer.

I want to know if there is a mechanism in Actions that use Mac OS to store an environment like qt.

I want to avoid the reinstallation of the environment every ececution of the action.

Thank you very much

Hi @manang ,

Thanks for your reply. I’m afraid you have to install the env for actions on macOS runner since docker is not supported. However, you can cache the env dependencies to speed up workflows with ‘github actions cache’ mechanism. Please check the usage for more details.

Thanks.

Thank you very much.

Let me study your link.

Angelo

Hi @weide-zhou 

I’m trying to use the cache in actions.

do you know if there is a way to renew the cache?

For example: 

if I don’t have a cache, the action creates it and put the path in the cache.

if I have the cache  and I modify a file that is in the cache, the action does not store the new version of the file.

Do you have a hint to solve my problem?

Thank you very much

Angelo

Hi @manang,

Sorry for late response. The cache mechanism mainly check two values: ‘key’ and ‘restore key’.

If you use hardcode for the two values, cache will not renew the content since cache hit is met.

If you use variable in the two values, cache will renew content then.

You can check the ‘actions/cache’ usage for more details.

Thanks.