action.yml 1002 B

1234567891011121314151617181920212223242526272829303132333435
  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.9.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 scons==${{ inputs.scons-version }}
  28. scons --version
  29. - name: Setup problem matchers
  30. shell: bash
  31. run: echo ::add-matcher::misc/utility/problem-matchers.json