action.yml 924 B

12345678910111213141516171819202122232425262728293031
  1. name: Setup Python and SCons
  2. description: Setup Python, install the pip version of SCons.
  3. inputs:
  4. python-version:
  5. description: The Python version to use.
  6. default: "3.x"
  7. python-arch:
  8. description: The Python architecture.
  9. default: "x64"
  10. scons-version:
  11. description: The SCons version to use.
  12. default: "4.8.0"
  13. runs:
  14. using: "composite"
  15. steps:
  16. - name: Set up Python 3.x
  17. uses: actions/setup-python@v5
  18. with:
  19. # Semantic version range syntax or exact version of a Python version.
  20. python-version: ${{ inputs.python-version }}
  21. # Optional - x64 or x86 architecture, defaults to x64.
  22. architecture: ${{ inputs.python-arch }}
  23. - name: Setup SCons
  24. shell: bash
  25. run: |
  26. python -c "import sys; print(sys.version)"
  27. python -m pip install wheel
  28. python -m pip install scons==${{ inputs.scons-version }}
  29. scons --version