mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-14 07:15:31 +02:00
Update build files and GitHub Actions workflow
This commit is contained in:
parent
237a456f99
commit
2ba480b4da
15 changed files with 172 additions and 429 deletions
10
.github/actions/import-assets/action.yml
vendored
Normal file
10
.github/actions/import-assets/action.yml
vendored
Normal file
|
@ -0,0 +1,10 @@
|
|||
name: Import assets
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Import assets
|
||||
shell: bash
|
||||
run: |
|
||||
# HACK: See https://github.com/godotengine/godot-proposals/issues/1362.
|
||||
(for i in {1..4}; do godot --editor --headless & sleep 5 && .github/actions/import-assets/monitor_import.sh; done) || true
|
||||
|
10
.github/actions/import-assets/monitor_import.sh
vendored
Executable file
10
.github/actions/import-assets/monitor_import.sh
vendored
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Source: https://github.com/godotengine/godot/pull/68461#issuecomment-1328177902
|
||||
|
||||
while [ "$(printf "%.0f\n" $(top -n 1 -b | awk '/^%Cpu/{print $2}'))" -gt 10 ];
|
||||
do
|
||||
echo "$(top -n 1 -b | awk '/^%Cpu/{print $2}')";
|
||||
done
|
||||
echo "Finished importing. Killing godot editor process";
|
||||
kill -9 $(pgrep -o godot)
|
Loading…
Add table
Add a link
Reference in a new issue