2024-05-17 07:28:56 +00:00
|
|
|
name: Setup Python and SCons
|
|
|
|
description: Setup Python, install the pip version of SCons.
|
2024-07-08 15:41:20 +00:00
|
|
|
|
2021-09-01 15:26:01 +00:00
|
|
|
inputs:
|
|
|
|
python-version:
|
2024-05-17 07:28:56 +00:00
|
|
|
description: The Python version to use.
|
2024-07-08 15:41:20 +00:00
|
|
|
default: 3.x
|
2021-09-01 15:26:01 +00:00
|
|
|
python-arch:
|
2024-05-17 07:28:56 +00:00
|
|
|
description: The Python architecture.
|
2024-07-08 15:41:20 +00:00
|
|
|
default: x64
|
2024-05-17 07:28:56 +00:00
|
|
|
scons-version:
|
|
|
|
description: The SCons version to use.
|
2024-07-08 15:41:20 +00:00
|
|
|
default: 4.8.0
|
|
|
|
|
2021-09-01 15:26:01 +00:00
|
|
|
runs:
|
2024-07-08 15:41:20 +00:00
|
|
|
using: composite
|
2021-09-01 15:26:01 +00:00
|
|
|
steps:
|
|
|
|
- name: Set up Python 3.x
|
2024-02-22 15:22:54 +00:00
|
|
|
uses: actions/setup-python@v5
|
2021-09-01 15:26:01 +00:00
|
|
|
with:
|
2024-05-17 07:28:56 +00:00
|
|
|
# Semantic version range syntax or exact version of a Python version.
|
2021-09-01 15:26:01 +00:00
|
|
|
python-version: ${{ inputs.python-version }}
|
2024-05-17 07:28:56 +00:00
|
|
|
# Optional - x64 or x86 architecture, defaults to x64.
|
2021-09-01 15:26:01 +00:00
|
|
|
architecture: ${{ inputs.python-arch }}
|
|
|
|
|
2024-05-17 07:28:56 +00:00
|
|
|
- name: Setup SCons
|
2021-09-01 15:26:01 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
python -c "import sys; print(sys.version)"
|
2024-05-17 07:28:56 +00:00
|
|
|
python -m pip install wheel
|
|
|
|
python -m pip install scons==${{ inputs.scons-version }}
|
2021-09-01 15:26:01 +00:00
|
|
|
scons --version
|