godot/.github/actions/godot-deps/action.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
918 B
YAML
Raw Normal View History

name: Setup Python and SCons
description: Setup Python, install the pip version of SCons.
2024-07-08 15:41:20 +00:00
inputs:
python-version:
description: The Python version to use.
2024-07-08 15:41:20 +00:00
default: 3.x
python-arch:
description: The Python architecture.
2024-07-08 15:41:20 +00:00
default: x64
scons-version:
description: The SCons version to use.
2024-07-08 15:41:20 +00:00
default: 4.8.0
runs:
2024-07-08 15:41:20 +00:00
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