mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-06 06:10:06 +03:00
CMake: Update CI
- Duplicated the ci.yml into ci-scons.yml and ci-cmake.yml
- Replaced some manual shell commands to detect changes with tj-actions/changed-files@v45
- Conditionally run the CI depending on what files change.
- Add ios toolchain from leetal/ios-cmake
- Added a cmake-minimum of 3.10 to silence errors from ios toolchain
(cherry picked from commit b6c0251296)
This commit is contained in:
committed by
David Snopek
parent
6e6a1ea451
commit
3963054a14
8
.github/actions/setup-godot-cpp/action.yml
vendored
8
.github/actions/setup-godot-cpp/action.yml
vendored
@@ -22,10 +22,13 @@ inputs:
|
||||
ndk-version:
|
||||
default: r23c
|
||||
description: Android NDK version.
|
||||
buildtool:
|
||||
description: scons or cmake
|
||||
scons-version:
|
||||
default: 4.4.0
|
||||
description: SCons version.
|
||||
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
@@ -55,8 +58,13 @@ runs:
|
||||
version: ${{ inputs.mingw-version }}
|
||||
|
||||
- name: Setup SCons
|
||||
if: ${{ inputs.buildtool == 'scons' }}
|
||||
shell: bash
|
||||
run: |
|
||||
python -c "import sys; print(sys.version)"
|
||||
python -m pip install scons==${{ inputs.scons-version }}
|
||||
scons --version
|
||||
|
||||
- name: Install Ninja
|
||||
if: ${{ inputs.buildtool == 'cmake' }}
|
||||
uses: ashutoshvarma/setup-ninja@master
|
||||
|
||||
Reference in New Issue
Block a user