[godot] Use Scons 4.4.0 for 3.x Godot build

This commit is contained in:
Mario Zechner 2024-05-22 16:13:21 +02:00
parent 77acce777c
commit 3311550b26
4 changed files with 50 additions and 18 deletions

View File

@ -0,0 +1,32 @@
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@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 scons==4.4.0
scons --version
- name: Setup dotnet 6
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'

View File

@ -50,7 +50,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -72,7 +72,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -96,7 +96,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -124,7 +124,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
run: | run: |
@ -146,7 +146,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
run: | run: |
@ -168,7 +168,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
run: | run: |
@ -197,7 +197,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -238,7 +238,7 @@ jobs:
java-version: 17 java-version: 17
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -283,7 +283,7 @@ jobs:
emcc -v emcc -v
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-4
- name: Build Godot artifact - name: Build Godot artifact
run: | run: |

View File

@ -24,7 +24,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -46,7 +46,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -70,7 +70,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -95,7 +95,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
run: | run: |
@ -116,7 +116,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
run: | run: |
@ -137,7 +137,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
run: | run: |
@ -166,7 +166,7 @@ jobs:
fetch-depth: 0 fetch-depth: 0
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -206,7 +206,7 @@ jobs:
java-version: 11 java-version: 11
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
shell: bash shell: bash
@ -249,7 +249,7 @@ jobs:
emcc -v emcc -v
- name: Setup python and scons - name: Setup python and scons
uses: ./.github/actions/setup-godot-deps uses: ./.github/actions/setup-godot-deps-3
- name: Build Godot artifact - name: Build Godot artifact
run: | run: |