Add a separate setup-godot-cpp github action.

(cherry picked from commit 9943675dcb)
This commit is contained in:
Lukas Tenbrink
2024-11-27 00:24:02 +01:00
committed by David Snopek
parent f5fa712138
commit 95a29550a7
2 changed files with 66 additions and 27 deletions

View File

@@ -105,34 +105,11 @@ jobs:
cache-name: ${{ matrix.cache-name }}
continue-on-error: true
- name: Set up Python (for SCons)
uses: actions/setup-python@v5
- name: Setup godot-cpp
uses: ./.github/actions/setup-godot-cpp
with:
python-version: 3.x
- name: Android dependencies
if: matrix.platform == 'android'
uses: nttld/setup-ndk@v1
with:
ndk-version: r23c
link-to-sdk: true
- name: Web dependencies
if: matrix.platform == 'web'
uses: mymindstorm/setup-emsdk@v14
with:
version: ${{ env.EM_VERSION }}
no-cache: true
- name: Setup MinGW for Windows/MinGW build
if: matrix.platform == 'windows' && matrix.flags == 'use_mingw=yes'
uses: egor-tensin/setup-mingw@v2
with:
version: 12.2.0
- name: Install scons
run: |
python -m pip install scons==4.0.0
platform: ${{ matrix.platform }}
windows-compiler: ${{ contains(matrix.flags, 'use_mingw=yes') && 'mingw' || 'msvc' }}
- name: Generate godot-cpp sources only
run: |