action.yml 835 B

123456789101112131415161718192021222324252627
  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. runs:
  11. using: "composite"
  12. steps:
  13. # Use python 3.x release (works cross platform)
  14. - name: Set up Python 3.x
  15. uses: actions/setup-python@v5
  16. with:
  17. # Semantic version range syntax or exact version of a Python version
  18. python-version: ${{ inputs.python-version }}
  19. # Optional - x64 or x86 architecture, defaults to x64
  20. architecture: ${{ inputs.python-arch }}
  21. - name: Setup scons
  22. shell: bash
  23. run: |
  24. python -c "import sys; print(sys.version)"
  25. python -m pip install scons==4.7.0
  26. scons --version