Comments (23)
I think I've found the issue:
https://github.com/abarichello/godot-ci/blob/master/.github/workflows/godot-ci.yml#L22
This path should be:
mkdir -v -p ~/.local/share/godot/export_templates
Next line needs to be adjusted as well.
Testing it right now.
from godot-ci.
Got it working, thanks for help:
https://github.com/jonathaneeckhout/jdungeon-level-server/actions/runs/5489502541
I needed to adjust my path of the output dir:
https://github.com/abarichello/godot-ci/blob/master/.github/workflows/godot-ci.yml#L53
Changed that line to:
build/linux/$EXPORT_NAME.x86_64
from godot-ci.
@matheusfillipe let us know if making these changes to your yml fixes your issue!
Yes it does!
from godot-ci.
https://github.com/matheusfillipe/duckhunt/actions/runs/5484625994/jobs/9992418250
from godot-ci.
Seems like there is something going wrong with the copy, When I do a "ls" of the final directory, it fails:
Run ls /github/home/.local/share/godot/export_templates/4.1.stable/
ls: cannot access '/github/home/.local/share/godot/export_templates/4.1.stable/': No such file or directory
from godot-ci.
from godot-ci.
That is already with the templates exported. I have created and exported the cfg. Running it locally works: godot -v --headless --export-release "Web" build/web/index.html
$ cat export_presets.cfg
[preset.0]
name="Web"
platform="Web"
runnable=true
dedicated_server=false
custom_features=""
export_filter="all_resources"
include_filter=""
exclude_filter=""
export_path=""
encryption_include_filters=""
encryption_exclude_filters=""
encrypt_pck=false
encrypt_directory=false
script_encryption_key=""
[preset.0.options]
custom_template/debug=""
custom_template/release=""
variant/extensions_support=false
vram_texture_compression/for_desktop=true
vram_texture_compression/for_mobile=false
html/export_icon=true
html/custom_html_shell=""
html/head_include=""
html/canvas_resize_policy=2
html/focus_canvas_on_start=true
html/experimental_virtual_keyboard=false
progressive_web_app/enabled=false
progressive_web_app/offline_page=""
progressive_web_app/display=1
progressive_web_app/orientation=0
progressive_web_app/icon_144x144=""
progressive_web_app/icon_180x180=""
progressive_web_app/icon_512x512=""
from godot-ci.
What is the output of this step:
- name: WhatDoWeHave
run: ls /root/.local/share/godot/templates/
from godot-ci.
The output of that step is 4.0.3.stable
What is the output of this step:
- name: WhatDoWeHave run: ls /root/.local/share/godot/templates/
from godot-ci.
Looks like you figured out the error? Well done! What steps did you take for the fix?
from godot-ci.
No that is actually how it has been always failing. The status is displayed wrong on github actions (but thats another issue). I made no progress:
ERROR: Cannot export project with preset "Web" due to configuration errors:
No export template found at the expected path:
/github/home/.local/share/godot/export_templates/4.0.3.stable/web_debug.zip
No export template found at the expected path:
/github/home/.local/share/godot/export_templates/4.0.3.stable/web_release.zip
from godot-ci.
Getting the same error for linux:
ERROR: Cannot export project with preset "Linux/X11" due to configuration errors:
No export template found at the expected path:
/github/home/.local/share/godot/export_templates/4.1.stable/linux_debug.x86_64
No export template found at the expected path:
/github/home/.local/share/godot/export_templates/4.1.stable/linux_release.x86_64
Run:
https://github.com/jonathaneeckhout/jdungeon-level-server/actions/runs/5489147462/jobs/10002923664
But I am trying with Godot 4.1. Workflow can be found here:
https://github.com/jonathaneeckhout/jdungeon-level-server/blob/main/.github/workflows/godot-ci.yml
from godot-ci.
ok, the error is telling us that no templates are present when they should be. I haven't been using godot 4 yet but I use CI for Godot 3 often. I'm going to investigate a little further. It looks like this is happening for both Godot 4.1 and 4.0.3. If you add this task what is its output:
- name: listTemplates
run: ls /root/.local/share/godot/templates/{GODOT_VERSION}.stable/
from godot-ci.
(I don't want to hijack the issue if I am not looking at the same thing) But I already did so:
Run ls /root/.local/share/godot/templates/4.1.stable/
android_debug.apk
android_release.apk
android_source.zip
ios.zip
linux_debug.x86_32
linux_debug.x86_64
linux_release.x86_32
linux_release.x86_64
macos.zip
version.txt
web_debug.zip
web_dlink_debug.zip
web_dlink_release.zip
web_release.zip
windows_debug_x86_32.exe
windows_debug_x86_32_console.exe
windows_debug_x86_64.exe
windows_debug_x86_64_console.exe
windows_release_x86_32.exe
windows_release_x86_32_console.exe
windows_release_x86_64.exe
windows_release_x86_64_console.exe
from godot-ci.
- name: listTemplates
run: ls /root/.local/share/godot/templates/*/
Run ls /root/.local/share/godot/templates/*/
android_debug.apk
android_release.apk
android_source.zip
ios.zip
linux_debug.x86_32
linux_debug.x86_64
linux_release.x86_32
linux_release.x86_64
macos.zip
version.txt
web_debug.zip
web_dlink_debug.zip
web_dlink_release.zip
web_release.zip
windows_debug_x86_32.exe
windows_debug_x86_32_console.exe
windows_debug_x86_64.exe
windows_debug_x86_64_console.exe
windows_release_x86_32.exe
windows_release_x86_32_console.exe
windows_release_x86_64.exe
windows_release_x86_64_console.exe
from godot-ci.
It did fix the initial error but a new one popped up:
reimport: begin: (Re)Importing Assets steps: 1
reimport: step 0: icon.svg
ERROR: Prepare Template: The given export path doesn't exist.
at: add_message (editor/export/editor_export_platform.h:178)
ERROR: Project export for preset "Linux/X11" failed.
at: _fs_changed (editor/editor_node.cpp:1003)
from godot-ci.
I think I've found the issue: https://github.com/abarichello/godot-ci/blob/master/.github/workflows/godot-ci.yml#L22
This path should be: mkdir -v -p ~/.local/share/godot/export_templates
Next line needs to be adjusted as well.
Testing it right now.
That fixes the issue, I also have other issues now: https://github.com/matheusfillipe/duckhunt/actions/runs/5489488472/jobs/10003706813
This is godot 4 specific godotengine/godot#63093
from godot-ci.
That fixes the issue, I also have other issues now: https://github.com/matheusfillipe/duckhunt/actions/runs/5489488472/jobs/10003706813
Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
Make sure read and write permissions are set on workflows:
https://github.com/<your-github-username>/<your-repository-name>/settings/actions
from godot-ci.
Thanks a lot @loteque and @jonathaneeckhout. All is working now. Also had to set to deploy from a branch:
name: "godot-ci export"
on: push
env:
GODOT_VERSION: 4.0.3
jobs:
export-web:
name: Web Export
runs-on: ubuntu-20.04
container:
image: barichello/godot-ci:4.0.3
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Web Build
run: |
mkdir -v -p build/web
godot -v --headless --export-release "Web" 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@v4
with:
folder: build/web # The folder the action should deploy.
I think is not possible to host games on github pages anymore though:
Don't know if they have such configuration.
from godot-ci.
Anyway thats another issue and nothing to do with what this workflow should do. Feel free to close this one!
from godot-ci.
Based on the comments here I have a very hacky workaround for that:
name: "godot-ci export"
on: push
env:
GODOT_VERSION: 4.0.3
jobs:
export-web:
name: Web Export
runs-on: ubuntu-20.04
container:
image: barichello/godot-ci:4.0.3
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Web Build
run: |
mkdir -v -p build/web
godot -v --headless --export-release "Web" build/web/index.html
- name: Install rsync 📚
run: |
apt-get update && apt-get install -y rsync curl
- name: Patch for Cross Origin Isolation and SharedArrayBuffer
run: |
cd build/web/
curl https://raw.githubusercontent.com/josephrocca/clip-image-sorter/92b108dc670d0b56bd6b72963b0e86c4c862412e/enable-threads.js --output enable-threads.js
sed -i 's|headers.set("Cross-Origin-Embedder-Policy", "credentialless")|headers.set("Cross-Origin-Embedder-Policy", "require-corp")|g' enable-threads.js
sed -i 's|<script src="index.js"></script>|<script src="enable-threads.js"></script><script src="index.js"></script>|g' index.html
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
name: web
path: build/web
- name: Deploy to GitHub Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build/web # The folder the action should deploy.
The game loads after taking quite a while to load but loads.
from godot-ci.
@matheusfillipe can you open a new issue concerning the crossorigin requirements? That seems like something we should make visible.
from godot-ci.
from godot-ci.
Related Issues (20)
- fixed godot 4.1.3 pipeline
- Docker godot mono 4.1.3 image not working - .NET not initalized HOT 7
- 4.2 support?
- Exported Games with Godot-CI and C# are not recognizing the connected events HOT 1
- Unable to load any resources (4.2.1) HOT 11
- ".../" in export command was causing issue in web build HOT 1
- Does jdk needs an update? HOT 1
- `No export template found at expected path` HOT 3
- [3.5.2] Build hanging after failing to load resources HOT 2
- godot 4.2.2 missing templates? HOT 1
- Docker image incorrect godot version argument HOT 2
- OCI runtime exec failed: exec failed: unable to start container process: exec: "node": executable file not found in $PATH: unknown HOT 6
- Godot .NET projects cannot be built using CI
- Godot 4.1.4 image?
- Export path issue using github workflow
- GitHub Actions workflow is unable to start rcedit HOT 4
- [Godot 4.3] Unable to load a project with addons/plugins HOT 1
- "A valid Java SDK path is required in Editor Settings", editor settings are not being read HOT 3
- Import hangs when using blender assets HOT 2
- Halts on plugins that require refresh HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot-ci.