From b0cc20c33b0e1757ca8a971191668e85e7a5e3ef Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Mon, 11 Jul 2022 12:12:02 +0200 Subject: [PATCH] [godot] GH action --- .github/actions/setup-godot-deps/action.yml | 27 +++++++++++++++++++++ .github/workflows/spine-godot.yml | 5 +++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/actions/setup-godot-deps/action.yml diff --git a/.github/actions/setup-godot-deps/action.yml b/.github/actions/setup-godot-deps/action.yml new file mode 100644 index 000000000..7d10dcdf5 --- /dev/null +++ b/.github/actions/setup-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 \ No newline at end of file diff --git a/.github/workflows/spine-godot.yml b/.github/workflows/spine-godot.yml index d5e80749c..15338d6f3 100644 --- a/.github/workflows/spine-godot.yml +++ b/.github/workflows/spine-godot.yml @@ -14,7 +14,10 @@ jobs: steps: - uses: actions/checkout@v2 with: - fetch-depth: 0 + fetch-depth: 0 + + - name: Setup python and scons + uses: ./.github/actions/setup-godot-deps - name: Build Godot artifact run: |