diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-09-01 17:26:01 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-09-14 12:46:16 +0200 |
commit | 3dbf0084119e012da8f663c040c2474624a6a179 (patch) | |
tree | 0cbab50770085980c191211e1f444edfc1ae1820 /.github/actions/godot-deps | |
parent | 195ea41a7ad3dd83d33162d2656e7e383674d3aa (diff) |
[CI] Refactor CI actions, use sub-actions, matrices.
Diffstat (limited to '.github/actions/godot-deps')
-rw-r--r-- | .github/actions/godot-deps/action.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/actions/godot-deps/action.yml b/.github/actions/godot-deps/action.yml new file mode 100644 index 0000000000..ee4d7d3751 --- /dev/null +++ b/.github/actions/godot-deps/action.yml @@ -0,0 +1,27 @@ +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" +runs: + using: "composite" + steps: + # Use python 3.x release (works cross platform) + - name: Set up Python 3.x + uses: actions/setup-python@v2 + 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 scons + scons --version |