Skip to content

feature: add OS distro name and version to runner context #2527

@kolyshkin

Description

@kolyshkin

Similar to #1185, it would be nice to have OS distro name and version in runner context.

For example, the value of runner.os is used by actions/cache as part of the cache key, so that the cache for Windows won't be reused on MacOS. Surely, it also makes sense to use runner.arch as binary artefacts from ARM won't work on e.g. X64 (filed actions/cache#1146)

What's missing is OS distro name (such as "ubuntu", in case other distros will be used in the future) and the distro version (such as "20.04" or "22.04". This is needed because the code (object files, for example) compiled on Ubuntu 22.04 won't work on Ubuntu 20.04. I guess this may also be true for Windows and Mac OS X (e.g. binaries for Mac OS 12 might not work on Mac OS 11).

Making this available might help solve problems like actions/setup-go#368 (and avoid similar hard-to-debug issues in the future).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions