Remove asset import job

This commit is contained in:
Leroy Hopson 2024-02-24 15:48:48 +13:00
parent 5c175d9192
commit 60054e7ee0
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
3 changed files with 12 additions and 99 deletions

View file

@ -1,21 +0,0 @@
name: Import assets
inputs:
godot-version:
required: true
runs:
using: "composite"
steps:
- name: Setup Godot
uses: lihop/setup-godot@v2
with:
version: ${{ inputs.godot-version }}
- name: Install just
uses: taiki-e/install-action@just
- name: Install dev dependencies
shell: bash
run: just install
- 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

View file

@ -1,10 +0,0 @@
#!/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)