-
Notifications
You must be signed in to change notification settings - Fork 20
Godot 4.1 conversion #95
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
Open
b7g
wants to merge
8
commits into
letsgamedev:main
Choose a base branch
from
b7g:godot-4.1-conversion
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.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
87e4329
break things
b7g 09d0cee
linting
b7g 67172d8
restore/rework about section
b7g 3fc0bb0
Be that as it may
b7g 6275bfe
completly change snapshot.yml to fix it
Joshix-1 973d436
Joshix-1’s lint workflow changes
b7g b32ab20
Sortit restoration wip
b7g 1863c21
formatting
b7g 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 hidden or 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 |
|---|---|---|
|
|
@@ -23,11 +23,15 @@ jobs: | |
| - uses: actions/checkout@v3 | ||
| # set-up python (required for godot-gdscript-toolkit) | ||
| - name: Setup Python | ||
| uses: actions/[email protected] | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: 3.12 | ||
| - name: Install setuptools | ||
| run: pip3 install setuptools | ||
|
|
||
| # Install godot-gdscript-toolkit | ||
| - name: Install godot-gdscript-toolkit | ||
| run: pip3 install 'gdtoolkit==3.*' | ||
| run: pip3 install 'gdtoolkit==4.*' | ||
|
|
||
| # lint all gd files | ||
| - name: Lint all the gd files with gdtoolkit | ||
|
|
||
This file contains hidden or 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,45 +1,114 @@ | ||
| # inspired by https://github.com/abarichello/godot-ci/blob/31ec75f1ad6adeed9bb7ff5d2cd10504cad21386/.github/workflows/godot-ci.yml | ||
| name: Builds a Snapshot | ||
|
|
||
| on: | ||
| # Triggers the workflow on push or pull request | ||
| push: | ||
| pull_request: | ||
|
|
||
| env: | ||
| GODOT_VERSION: 4.1.2 | ||
| EXPORT_NAME: Suffragium | ||
| PROJECT_PATH: game | ||
| # pack, debug, release | ||
| MODE: release | ||
|
|
||
| jobs: | ||
| build: | ||
| export-windows: | ||
| name: Windows Export | ||
| runs-on: ubuntu-latest | ||
|
|
||
| container: | ||
| image: barichello/godot-ci:4.1.2 | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
|
|
||
| - name: Download latest earthly | ||
| run: "sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/latest/download/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'" | ||
|
|
||
| - name: Earthly version | ||
| run: earthly --version | ||
|
|
||
| - name: Run build | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup | ||
| run: | | ||
| cd game | ||
| mv export_presets.snapshot.cfg export_presets.cfg | ||
| cd .. | ||
| earthly +build | ||
|
|
||
| # Publish Artifacts for download | ||
| - name: Publish Windows | ||
| uses: actions/upload-artifact@v3 | ||
| mkdir -v -p ~/.local/share/godot/templates | ||
| mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | ||
| - name: Windows Build | ||
| run: | | ||
| mkdir -v -p build/windows | ||
| cd $PROJECT_PATH | ||
| godot -v --headless --export-$MODE "Windows Desktop" ../build/windows/$EXPORT_NAME.exe | ||
| - name: Upload Artifact | ||
| uses: actions/upload-artifact@v1 | ||
| with: | ||
| name: windows | ||
| path: builds/windows | ||
| path: build/windows | ||
|
|
||
| - name: Publish Linux | ||
| uses: actions/upload-artifact@v3 | ||
| export-linux: | ||
| name: Linux Export | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: barichello/godot-ci:4.1.2 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup | ||
| run: | | ||
| mkdir -v -p ~/.local/share/godot/templates | ||
| mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | ||
| - name: Linux Build | ||
| run: | | ||
| mkdir -v -p build/linux | ||
| cd $PROJECT_PATH | ||
| godot -v --headless --export-$MODE "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 | ||
| - name: Upload Artifact | ||
| uses: actions/upload-artifact@v1 | ||
| with: | ||
| name: linux | ||
| path: builds/linux | ||
| path: build/linux | ||
|
|
||
| - name: Publish HTMl5 | ||
| uses: actions/upload-artifact@v3 | ||
| export-web: | ||
| name: Web Export | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: barichello/godot-ci:4.1.2 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup | ||
| run: | | ||
| mkdir -v -p ~/.local/share/godot/templates | ||
| mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | ||
| - name: Web Build | ||
| run: | | ||
| mkdir -v -p build/web | ||
| cd $PROJECT_PATH | ||
| godot -v --headless --export-$MODE "HTML5" ../build/web/index.html | ||
| - name: Upload Artifact | ||
| uses: actions/upload-artifact@v1 | ||
| with: | ||
| name: web | ||
| path: build/web | ||
| # - name: Install rsync 📚 | ||
| # run: | | ||
| # apt-get update && apt-get install -y rsync | ||
| # - name: Deploy to GitHub Pages 🚀 | ||
| # uses: JamesIves/github-pages-deploy-action@releases/v4 | ||
| # with: | ||
| # branch: gh-pages # The branch the action should deploy to. | ||
| # folder: build/web # The folder the action should deploy. | ||
|
|
||
| export-mac: | ||
| name: Mac Export | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: barichello/godot-ci:4.1.2 | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| - name: Setup | ||
| run: | | ||
| mkdir -v -p ~/.local/share/godot/templates | ||
| mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | ||
| - name: Mac Build | ||
| run: | | ||
| mkdir -v -p build/mac | ||
| cd $PROJECT_PATH | ||
| godot -v --headless --export-$MODE "Mac OSX" ../build/mac/$EXPORT_NAME.zip | ||
| - name: Upload Artifact | ||
| uses: actions/upload-artifact@v1 | ||
| with: | ||
| name: html5 | ||
| path: builds/html5 | ||
| name: mac | ||
| path: build/mac |
This file contains hidden or 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,5 +1,5 @@ | ||
| # Godot-specific ignores | ||
| .import/ | ||
| .godot/ | ||
| export.cfg | ||
| export_presets.cfg | ||
| *.translation | ||
|
|
||
This file contains hidden or 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,5 +1,5 @@ | ||
| build-base: | ||
| FROM barichello/godot-ci:3.4.4 | ||
| FROM barichello/godot-ci:4.1.2 | ||
|
|
||
| WORKDIR game | ||
| COPY ./game . | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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,35 +1,34 @@ | ||
| [remap] | ||
|
|
||
| importer="texture" | ||
| type="StreamTexture" | ||
| path="res://.import/alpha_pixel_1.png-22cac7682bfdb021c302c5a6fb592fe1.stex" | ||
| type="CompressedTexture2D" | ||
| uid="uid://di3cpbvgy6di8" | ||
| path="res://.godot/imported/alpha_pixel_1.png-22cac7682bfdb021c302c5a6fb592fe1.ctex" | ||
| metadata={ | ||
| "vram_texture": false | ||
| } | ||
|
|
||
| [deps] | ||
|
|
||
| source_file="res://app/images/alpha_pixel_1.png" | ||
| dest_files=[ "res://.import/alpha_pixel_1.png-22cac7682bfdb021c302c5a6fb592fe1.stex" ] | ||
| dest_files=["res://.godot/imported/alpha_pixel_1.png-22cac7682bfdb021c302c5a6fb592fe1.ctex"] | ||
|
|
||
| [params] | ||
|
|
||
| compress/mode=0 | ||
| compress/high_quality=false | ||
| compress/lossy_quality=0.7 | ||
| compress/hdr_mode=0 | ||
| compress/bptc_ldr=0 | ||
| compress/hdr_compression=1 | ||
| compress/normal_map=0 | ||
| flags/repeat=0 | ||
| flags/filter=true | ||
| flags/mipmaps=false | ||
| flags/anisotropic=false | ||
| flags/srgb=2 | ||
| compress/channel_pack=0 | ||
| mipmaps/generate=false | ||
| mipmaps/limit=-1 | ||
| roughness/mode=0 | ||
| roughness/src_normal="" | ||
| process/fix_alpha_border=true | ||
| process/premult_alpha=false | ||
| process/HDR_as_SRGB=false | ||
| process/invert_color=false | ||
| process/normal_map_invert_y=false | ||
| stream=false | ||
| size_limit=0 | ||
| detect_3d=true | ||
| svg/scale=1.0 | ||
| process/hdr_as_srgb=false | ||
| process/hdr_clamp_exposure=false | ||
| process/size_limit=0 | ||
| detect_3d/compress_to=1 |
This file contains hidden or 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,35 +1,34 @@ | ||
| [remap] | ||
|
|
||
| importer="texture" | ||
| type="StreamTexture" | ||
| path="res://.import/cogwheel_16.png-1a53f86a71bc0c4d5cc0e0fac3594f02.stex" | ||
| type="CompressedTexture2D" | ||
| uid="uid://hbkfur2u0e05" | ||
| path="res://.godot/imported/cogwheel_16.png-1a53f86a71bc0c4d5cc0e0fac3594f02.ctex" | ||
| metadata={ | ||
| "vram_texture": false | ||
| } | ||
|
|
||
| [deps] | ||
|
|
||
| source_file="res://app/images/cogwheel_16.png" | ||
| dest_files=[ "res://.import/cogwheel_16.png-1a53f86a71bc0c4d5cc0e0fac3594f02.stex" ] | ||
| dest_files=["res://.godot/imported/cogwheel_16.png-1a53f86a71bc0c4d5cc0e0fac3594f02.ctex"] | ||
|
|
||
| [params] | ||
|
|
||
| compress/mode=0 | ||
| compress/high_quality=false | ||
| compress/lossy_quality=0.7 | ||
| compress/hdr_mode=0 | ||
| compress/bptc_ldr=0 | ||
| compress/hdr_compression=1 | ||
| compress/normal_map=0 | ||
| flags/repeat=0 | ||
| flags/filter=true | ||
| flags/mipmaps=false | ||
| flags/anisotropic=false | ||
| flags/srgb=2 | ||
| compress/channel_pack=0 | ||
| mipmaps/generate=false | ||
| mipmaps/limit=-1 | ||
| roughness/mode=0 | ||
| roughness/src_normal="" | ||
| process/fix_alpha_border=true | ||
| process/premult_alpha=false | ||
| process/HDR_as_SRGB=false | ||
| process/invert_color=false | ||
| process/normal_map_invert_y=false | ||
| stream=false | ||
| size_limit=0 | ||
| detect_3d=true | ||
| svg/scale=1.0 | ||
| process/hdr_as_srgb=false | ||
| process/hdr_clamp_exposure=false | ||
| process/size_limit=0 | ||
| detect_3d/compress_to=1 |
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.
it seems like you need to also install setuptools since python 3.12, we should pin the python version, so this doesn't happen again.