-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update compatibility to 4.0-stable #304
Open
Beliar83
wants to merge
37
commits into
GodotECS:main
Choose a base branch
from
Beliar83:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+731
−521
Open
Changes from 32 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
2fd59b7
Update compatibility for 4.0 beta3 (35cfaafda8073f700c9d2fe42a43d3d81…
Beliar83 c5bba89
Update compatibility to 889868cbbc8beac74d5f49f9b7ef41efc4ae7d5a
Beliar83 b99963a
Ignore script name when checking properties
Beliar83 f8db5b6
Temporarily disable registering scripts when running a project to fix…
Beliar83 f8bf505
Fix loading of components from C#
Beliar83 1a200e4
Update compatibility
Beliar83 6d2a012
Update compatibility
Beliar83 f3a5fd2
Move register_runtime_scripts to NOTIFICATION_POSTINITIALIZE
Beliar83 1412b3c
Call register_runtime_scripts in NOTIFICATION_READY as well.
Beliar83 5291ad1
Fix formatting
Beliar83 9ab9ed5
Compatibility changes
Beliar83 0069914
Change godot version to check out
Beliar83 27d873b
Adjust target
Beliar83 9c282c2
Update patch
Beliar83 abb7ed4
Fix g++ warnings
Beliar83 dc228d8
Fixing builds
Beliar83 3b7098e
Fix formatting
Beliar83 b8514f0
Fix godot tests
Beliar83 e0c8e08
Fix tests
Beliar83 eac4c95
Preload scripts for registering system and component names
Beliar83 d62c5f2
Wait for static checks
Beliar83 d19166a
Update ref
Beliar83 ccba0ee
Run tests with headless
Beliar83 7d87207
Print message when preloading scripts
Beliar83 57117e8
Don't preload scripts for tests in debug mode
Beliar83 92513e7
Update commit to 4.0 RC3
Beliar83 4439dd9
Don't run tests with headless on windows.
Beliar83 d2f0ecc
Remove left over debug statement
Beliar83 27b6469
Move resetting of default values to fix crash with mono builds.
Beliar83 816bf03
Fix building with clang
Beliar83 76b6755
Use newer black version
Beliar83 f676895
Updated godot version to 92bee43adba8d2401ef40e2480e53087bcb1eaf1 (4.…
Beliar83 43f6c34
Merge branch 'GodotECS:main' into main
Beliar83 9c4b85b
Updated version to 7a0977ce2c558fe6219f0a14f8bd4d05aea8f019 (4.0.2-st…
Beliar83 369a473
Update compatibility to ab7cb2a95d060a6533e6ff5111c11f71972ab43f
Beliar83 f919dff
Fix builds for PRs
Beliar83 d329668
Fix shadow warnigs
Beliar83 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,16 +9,23 @@ on: | |
|
||
# Global Settings | ||
env: | ||
GODOT_BASE_BRANCH: master | ||
SCONSFLAGS: platform=linuxbsd verbose=yes warnings=extra werror=yes debug_symbols=no --jobs=2 module_text_server_fb_enabled=yes | ||
GODOT_REF: 92bee43adba8d2401ef40e2480e53087bcb1eaf1 | ||
SCONSFLAGS: platform=linuxbsd verbose=yes warnings=extra werror=yes debug_symbols=no module_text_server_fb_enabled=yes | ||
SCONS_CACHE_LIMIT: 4096 | ||
|
||
jobs: | ||
linux-editor: | ||
runs-on: "ubuntu-20.04" | ||
name: Editor (target=release_debug, tools=yes, tests=yes) | ||
name: Editor (target=editor, tools=yes, tests=yes) | ||
|
||
steps: | ||
- name: Wait for static checks | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: 'Static Checks (clang-format, black format, file format, documentation checks)' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 | ||
- name: Make godot dir | ||
run: | | ||
mkdir godot | ||
|
@@ -33,10 +40,15 @@ jobs: | |
- name: Clone godot for godex | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: GodotECS/godot | ||
ref: refs/heads/godex_version | ||
repository: godotengine/godot | ||
ref: ${{ env.GODOT_REF }} | ||
path: godot | ||
|
||
- name: Apply patch | ||
run: | | ||
cd godot | ||
git apply ../modules/godex/patches/add_custom_iterator.patch --reject --ignore-space-change --ignore-whitespace | ||
|
||
# Azure repositories are not reliable, we need to prevent azure giving us packages. | ||
- name: Make apt sources.list use the default Ubuntu repositories | ||
run: | | ||
|
@@ -56,11 +68,11 @@ jobs: | |
uses: actions/cache@v2 | ||
with: | ||
path: ${{github.workspace}}/.scons_cache/ | ||
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | ||
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-{{env.GODOT_REF}}-${{github.ref}}-${{github.sha}} | ||
restore-keys: | | ||
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | ||
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}} | ||
${{github.job}}-${{env.GODOT_BASE_BRANCH}} | ||
${{github.job}}-{{env.GODOT_REF}}-${{github.ref}}-${{github.sha}} | ||
${{github.job}}-{{env.GODOT_REF}}-${{github.ref}} | ||
${{github.job}}-{{env.GODOT_REF}} | ||
|
||
# Use python 3.x release (works cross platform; best to keep self contained in it's own step) | ||
- name: Set up Python 3.x | ||
|
@@ -84,14 +96,14 @@ jobs: | |
SCONS_CACHE: ${{github.workspace}}/.scons_cache/ | ||
run: | | ||
cd godot | ||
scons tools=yes tests=yes target=release_debug custom_modules="../modules" -j2 | ||
scons tools=yes tests=yes target=editor custom_modules="../modules" | ||
ls -l bin/ | ||
|
||
# Execute unit tests for the editor | ||
- name: Unit Tests | ||
run: | | ||
cd ./godot | ||
./bin/godot.linuxbsd.opt.tools.64 --test | ||
./bin/godot.linuxbsd.editor.x86_64 --test --headless | ||
cd ../ | ||
|
||
- uses: actions/upload-artifact@v2 | ||
|
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 |
---|---|---|
|
@@ -10,18 +10,25 @@ on: | |
# Global Settings | ||
# SCONS_CACHE for windows must be set in the build environment | ||
env: | ||
GODOT_BASE_BRANCH: master | ||
SCONSFLAGS: platform=windows verbose=yes warnings=all werror=yes debug_symbols=no --jobs=2 module_text_server_fb_enabled=yes | ||
GODOT_REF: 92bee43adba8d2401ef40e2480e53087bcb1eaf1 | ||
SCONSFLAGS: platform=windows verbose=yes warnings=all werror=yes debug_symbols=no module_text_server_fb_enabled=yes | ||
SCONS_CACHE_MSVC_CONFIG: true | ||
SCONS_CACHE_LIMIT: 3072 | ||
|
||
jobs: | ||
windows-editor: | ||
# Windows 10 with latest image | ||
runs-on: "windows-latest" | ||
name: Editor (target=release_debug, tools=yes, tests=yes) | ||
name: Editor (target=editor, tools=yes, tests=yes) | ||
|
||
steps: | ||
- name: Wait for static checks | ||
uses: lewagon/[email protected] | ||
with: | ||
ref: ${{ github.ref }} | ||
check-name: 'Static Checks (clang-format, black format, file format, documentation checks)' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
wait-interval: 10 | ||
- name: Make dir | ||
run: | | ||
mkdir godot | ||
|
@@ -36,10 +43,15 @@ jobs: | |
- name: Clone godot for godex | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: GodotECS/godot | ||
ref: refs/heads/godex_version | ||
repository: godotengine/godot | ||
ref: ${{ env.GODOT_REF }} | ||
path: godot | ||
|
||
- name: Apply patch | ||
run: | | ||
cd godot | ||
git apply ../modules/godex/patches/add_custom_iterator.patch --reject --ignore-space-change --ignore-whitespace | ||
|
||
# Upload cache on completion and check it out now | ||
# Editing this is pretty dangerous for Windows since it can break and needs to be properly tested with a fresh cache. | ||
- name: Load .scons_cache directory | ||
|
@@ -49,9 +61,9 @@ jobs: | |
path: ${{github.workspace}}/.scons_cache/ | ||
key: ${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | ||
restore-keys: | | ||
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}}-${{github.sha}} | ||
${{github.job}}-${{env.GODOT_BASE_BRANCH}}-${{github.ref}} | ||
${{github.job}}-${{env.GODOT_BASE_BRANCH}} | ||
${{github.job}}-${{env.GODOT_REF}}-${{github.ref}}-${{github.sha}} | ||
${{github.job}}-${{env.GODOT_REF}}-${{github.ref}} | ||
${{github.job}}-${{env.GODOT_REF}} | ||
|
||
# Use python 3.x release (works cross platform; best to keep self contained in it's own step) | ||
- name: Set up Python 3.x | ||
|
@@ -76,14 +88,14 @@ jobs: | |
SCONS_CACHE: ${{github.workspace}}/.scons_cache/ | ||
run: | | ||
cd godot | ||
scons tools=yes tests=yes target=release_debug custom_modules="../modules" | ||
scons tools=yes tests=yes target=editor custom_modules="../modules" | ||
ls -l bin/ | ||
|
||
# Execute unit tests for the editor | ||
- name: Unit Tests | ||
run: | | ||
cd ./godot | ||
./bin/godot.windows.opt.tools.64.exe --test | ||
./bin/godot.windows.editor.x86_64.exe --test | ||
cd ../ | ||
|
||
- uses: actions/upload-artifact@v2 | ||
|
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra whitespace