-
-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1695 from dsnopek/4.3-cherrypicks-3
Cherry-picks for the godot-cpp 4.3 branch - 3rd batch
- Loading branch information
Showing
31 changed files
with
703 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: Setup godot-cpp | ||
description: Setup build dependencies for godot-cpp. | ||
|
||
inputs: | ||
platform: | ||
required: true | ||
description: Target platform. | ||
em-version: | ||
default: 3.1.62 | ||
description: Emscripten version. | ||
windows-compiler: | ||
required: true | ||
description: The compiler toolchain to use on Windows ('mingw' or 'msvc'). | ||
type: choice | ||
options: | ||
- mingw | ||
- msvc | ||
default: mingw | ||
mingw-version: | ||
default: 12.2.0 | ||
description: MinGW version. | ||
ndk-version: | ||
default: r23c | ||
description: Android NDK version. | ||
scons-version: | ||
default: 4.4.0 | ||
description: SCons version. | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Python (for SCons) | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Setup Android dependencies | ||
if: inputs.platform == 'android' | ||
uses: nttld/setup-ndk@v1 | ||
with: | ||
ndk-version: ${{ inputs.ndk-version }} | ||
link-to-sdk: true | ||
|
||
- name: Setup Web dependencies | ||
if: inputs.platform == 'web' | ||
uses: mymindstorm/setup-emsdk@v14 | ||
with: | ||
version: ${{ inputs.em-version }} | ||
no-cache: true | ||
|
||
- name: Setup MinGW for Windows/MinGW build | ||
if: inputs.platform == 'windows' && inputs.windows-compiler == 'mingw' | ||
uses: egor-tensin/setup-mingw@v2 | ||
with: | ||
version: ${{ inputs.mingw-version }} | ||
|
||
- name: Setup SCons | ||
shell: bash | ||
run: | | ||
python -c "import sys; print(sys.version)" | ||
python -m pip install scons==${{ inputs.scons-version }} | ||
scons --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 🔗 GHA | ||
on: [push, pull_request, merge_group] | ||
|
||
concurrency: | ||
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-runner | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# First stage: Only static checks, fast and prevent expensive builds from running. | ||
|
||
static-checks: | ||
if: '!vars.DISABLE_GODOT_CI' | ||
name: 📊 Static Checks | ||
uses: ./.github/workflows/static_checks.yml | ||
|
||
# Second stage: Run all the builds and some of the tests. | ||
|
||
ci: | ||
name: 🛠️ Continuous Integration | ||
needs: static-checks | ||
uses: ./.github/workflows/ci.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
name: 📊 Static Checks | ||
on: [push, pull_request] | ||
on: | ||
workflow_call: | ||
|
||
concurrency: | ||
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-static | ||
group: ci-${{ github.actor }}-${{ github.head_ref || github.run_number }}-${{ github.ref }}-static | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
@@ -31,3 +32,7 @@ jobs: | |
uses: pre-commit/[email protected] | ||
with: | ||
extra_args: --verbose --hook-stage manual --files ${{ env.CHANGED_FILES }} | ||
|
||
- name: Check generated files consistency | ||
run: | ||
python misc/scripts/check_get_file_list.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.