-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added '_native' test to avoid '.import' folder added 'web' platform updated updater
- Loading branch information
1 parent
a229c70
commit 0d725ec
Showing
27 changed files
with
729 additions
and
467 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
name: 🛠️ GDExtension Build | ||
on: | ||
push: | ||
paths: | ||
[ | ||
src/**, | ||
.github/**, | ||
"!.github/**/util_*", | ||
"patches/**", | ||
lib_utils.py, | ||
SConstruct, | ||
] | ||
paths: [src/**, .github/**, "!.github/**/util_*", "patches/**", lib_utils.py, SConstruct] | ||
pull_request: | ||
paths: [src/**, .github/**, "!.github/**/util_*", "patches/**", lib_utils.py, SConstruct] | ||
workflow_dispatch: | ||
inputs: | ||
use_cache: | ||
description: Use Cache | ||
default: true | ||
type: boolean | ||
repository_dispatch: | ||
|
||
# Stop the same workflow actions | ||
|
@@ -48,6 +47,7 @@ jobs: | |
target: ${{matrix.target}} | ||
arch: ${{matrix.arch}} | ||
output_libs_path: ${{env.OUTPUT_LIBS_PATH}} | ||
use_cache: ${{format('{0}', inputs.use_cache)}} # Cast to string | ||
artifact: windows | ||
additional: lto=yes | ||
|
||
|
@@ -77,6 +77,7 @@ jobs: | |
target: ${{matrix.target}} | ||
arch: ${{matrix.arch}} | ||
output_libs_path: ${{env.OUTPUT_LIBS_PATH}} | ||
use_cache: ${{format('{0}', inputs.use_cache)}} | ||
artifact: linux | ||
additional: lto=yes | ||
|
||
|
@@ -106,6 +107,7 @@ jobs: | |
target: ${{matrix.target}} | ||
arch: ${{matrix.arch}} | ||
output_libs_path: ${{env.OUTPUT_LIBS_PATH}} | ||
use_cache: ${{format('{0}', inputs.use_cache)}} | ||
artifact: macos | ||
additional: lto=yes macos_deployment_target=10.14 | ||
|
||
|
@@ -121,35 +123,91 @@ jobs: | |
arch: [arm32, arm64, x86_32, x86_64] | ||
target: [template_debug, template_release] | ||
|
||
env: | ||
ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk/23.2.8568313 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
submodules: recursive | ||
|
||
- name: Install Android NDK r23c | ||
uses: nttld/[email protected] | ||
id: setup-ndk | ||
with: | ||
ndk-version: r23c | ||
link-to-sdk: true | ||
local-cache: true | ||
|
||
# TODO revisit after some updates of nttld/setup-ndk | ||
- name: Restore Android Symlinks | ||
run: | | ||
directory="${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin" | ||
find "$directory" -type l | while read link; do | ||
current_target=$(readlink "$link") | ||
new_target="$directory/$(basename "$current_target")" | ||
ln -sf "$new_target" "$link" | ||
echo "Changed $(basename "$link") from $current_target to $new_target" | ||
done | ||
- name: Compile GDExtension | ||
uses: ./.github/actions/compile_gdextension | ||
with: | ||
platform: android | ||
target: ${{matrix.target}} | ||
arch: ${{matrix.arch}} | ||
output_libs_path: ${{env.OUTPUT_LIBS_PATH}} | ||
use_cache: ${{format('{0}', inputs.use_cache)}} | ||
artifact: android | ||
additional: lto=yes | ||
|
||
# ============================================ | ||
|
||
web-gdextension: | ||
name: 🕸 Web | ||
runs-on: "ubuntu-latest" | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [wasm32] | ||
target: [template_debug, template_release] | ||
|
||
env: | ||
EM_VERSION: 3.1.39 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
submodules: recursive | ||
|
||
- uses: mymindstorm/setup-emsdk@v12 | ||
with: | ||
version: ${{env.EM_VERSION}} | ||
|
||
- name: Compile GDExtension | ||
uses: ./.github/actions/compile_gdextension | ||
with: | ||
platform: web | ||
target: ${{matrix.target}} | ||
arch: ${{matrix.arch}} | ||
output_libs_path: ${{env.OUTPUT_LIBS_PATH}} | ||
use_cache: ${{format('{0}', inputs.use_cache)}} | ||
artifact: web | ||
additional: lto=yes | ||
|
||
# ============================================ | ||
|
||
collect-gdextension: | ||
needs: | ||
[ | ||
windows-gdextension, | ||
linux-gdextension, | ||
macos-gdextension, | ||
android-gdextension, | ||
web-gdextension, | ||
] | ||
name: 📦 Collect GDExtension binaries | ||
runs-on: ubuntu-latest | ||
|
@@ -160,6 +218,10 @@ jobs: | |
with: | ||
path: extracted_files | ||
|
||
- name: Remove `gdextension_libs` if the action was restarted | ||
run: | | ||
rm -rf extracted_files/gdextension_libs/ | ||
- name: Store all libraries in one directory | ||
run: | | ||
ls -R extracted_files/ | ||
|
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
Submodule godot-cpp
updated
47 files
Oops, something went wrong.