a63c37dca1
The min SCons version had to be bumped as SCons 3.0 before 3.0.3 seems broken (see #92043), and there's little gain from supporting 3.0.3-3.0.5. 3.1.2 is also the first version to avoid ambiguities between Python 2 and Python 3 usage, so we finally use it as the minimum baseline. Also test against Python 3.6 which is also our minimum supported version. This should help prevent regressions whenever we modernize the build scripts.
30 lines
924 B
YAML
30 lines
924 B
YAML
name: Setup Python and SCons
|
|
description: Setup Python, install the pip version of SCons.
|
|
inputs:
|
|
python-version:
|
|
description: The Python version to use.
|
|
default: "3.x"
|
|
python-arch:
|
|
description: The Python architecture.
|
|
default: "x64"
|
|
scons-version:
|
|
description: The SCons version to use.
|
|
default: "4.7.0"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Set up Python 3.x
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
# Semantic version range syntax or exact version of a Python version.
|
|
python-version: ${{ inputs.python-version }}
|
|
# Optional - x64 or x86 architecture, defaults to x64.
|
|
architecture: ${{ inputs.python-arch }}
|
|
|
|
- name: Setup SCons
|
|
shell: bash
|
|
run: |
|
|
python -c "import sys; print(sys.version)"
|
|
python -m pip install wheel
|
|
python -m pip install scons==${{ inputs.scons-version }}
|
|
scons --version
|