Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-platform support #6

Open
ymyzk opened this issue Sep 17, 2019 · 2 comments
Open

Multi-platform support #6

ymyzk opened this issue Sep 17, 2019 · 2 comments

Comments

@ymyzk
Copy link
Owner

ymyzk commented Sep 17, 2019

Switch environments based on platforms (Linux, macOS, Windows)

@ymyzk
Copy link
Owner Author

ymyzk commented Mar 13, 2020

It seems GitHub Actions doesn't provide a platform type via environment variables: https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables

So, it's difficult to detect it from the plugin side. We probably need to use #20 and pass platform as an environment variable by updating the GitHub Action's configuration.

@ymyzk ymyzk changed the title Multi platform support Multi-platform support Mar 13, 2020
@bittner
Copy link

bittner commented May 22, 2023

It seems GitHub Actions doesn't provide a platform type via environment variables:

What about the RUNNER_OS variable? Would that work?

Apart from that, what would be wrong with using Python's platform.system()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants