julia-actions / cache

A shortcut action to cache Julia artifacts, packages, and registries.
MIT License
38 stars 8 forks source link

Julia's version is not taken into account #46

Closed rikhuijzer closed 9 months ago

rikhuijzer commented 1 year ago

Julia's version is currently not taken into account in the cache key. This probably has a negative effect on the usefulness of the compiled cache when there are multiple Julia versions being cached.

Is this something we can fix? Would it be safe for us to read out julia -e 'println(VERSION)'?

giordano commented 1 year ago

The compile cache is already indexed by the julia version on the file system, no?

rikhuijzer commented 1 year ago

Yes, but that could still mean that a cache by Julia version X results in a lot of X-specific files which are useless when restored on Julia version Y.

SaschaMann commented 1 year ago

We could add julia --version to the cache key if that's useful. Particularly with #45 that moves the compiled cache to a separate cache anyway.