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
This commit is contained in:
Samuel Nicholas
2025-03-11 12:37:11 +10:30
parent da064d84d2
commit b6c0251296
8 changed files with 1408 additions and 58 deletions

View File

@@ -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