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