action.yml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Build and Install Python
  2. author: MatteoH2O1999
  3. description: Action to build any Python version on the latest labels and install it into the local tool cache.
  4. branding:
  5. icon: play-circle
  6. color: blue
  7. inputs:
  8. python-version:
  9. description: Version range or exact version of Python to use, using SemVer's version range syntax.
  10. python-version-file:
  11. description: "File containing the Python version to use. Example: .python-version"
  12. architecture:
  13. description: The target architecture (x86, x64) of the Python interpreter.
  14. check-latest:
  15. description: "Set this option if you want the action to check for the latest available version that satisfies the version spec."
  16. default: false
  17. cache-build:
  18. required: false
  19. description: Whether to cache the built Python distribution to speed up successive runs.
  20. default: false
  21. allow-build:
  22. required: false
  23. description: "Set the behavior of the actoin when actions/setup-python fails and has to build from source. Supported values: allow, info, warn, error, force"
  24. default: warn
  25. token:
  26. description: "The token used to authenticate when fetching Python distributions from https://github.com/actions/python-versions. When running this action on github.com, the default value is sufficient. When running on GHES, you can pass a personal access token for github.com if you are experiencing rate limiting."
  27. default: ${{ github.server_url == 'https://github.com' && github.token || '' }}
  28. allow-prereleases:
  29. description: "When 'true', a version range passed to 'python-version' input will match prerelease versions if no GA versions are found. Only 'x.y' version range is supported for CPython."
  30. default: false
  31. outputs:
  32. python-version:
  33. description: The parsed (and eventually built) python version
  34. architecture:
  35. description: The target architecture (x86, x64) of the Python interpreter.
  36. runs:
  37. using: node16
  38. main: dist/index.js