From db51defddde361b95eea319975c7b75414a7409e Mon Sep 17 00:00:00 2001 From: Serhii Snitsaruk Date: Wed, 17 Jan 2024 17:54:20 +0100 Subject: [PATCH] GHA: For GDExtension builds, package demo, license and readme --- .github/workflows/gdextension.yml | 11 ++++++----- gdextension/setup_gdextension.sh | 6 +++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/gdextension.yml b/.github/workflows/gdextension.yml index bb82542..91b7ed9 100644 --- a/.github/workflows/gdextension.yml +++ b/.github/workflows/gdextension.yml @@ -162,15 +162,13 @@ jobs: - name: Setup project structure for GDExtension shell: bash run: | - python ./limboai/gdextension/update_icons.py - mkdir -p demo/addons/limboai/bin - mv limboai/icons demo/addons/limboai/ - cp limboai/gdextension/SConstruct SConstruct - cp limboai/gdextension/limboai.gdextension demo/addons/limboai/bin + bash ./limboai/gdextension/setup_gdextension.sh --copy-all echo "---" ls -l + echo "---" ls -l -R ./demo/ + - name: Compilation shell: bash env: @@ -184,7 +182,10 @@ jobs: run: | mkdir out mv demo/addons/ out/ + cp limboai/{README,LICENSE,LOGO_LICENSE}.md out/addons/limboai/ + cp -R limboai/demo/demo out/demo rm -f out/addons/limboai/bin/*.{exp,lib,pdb} + echo "---" ls -R out/ - name: Strip lib diff --git a/gdextension/setup_gdextension.sh b/gdextension/setup_gdextension.sh index d82d8b9..36df50a 100755 --- a/gdextension/setup_gdextension.sh +++ b/gdextension/setup_gdextension.sh @@ -76,6 +76,9 @@ done highlight Setup started. +${PYTHON} limboai/gdextension/update_icons.py --silent +highlight -- Icon declarations updated. + transfer="ln -s" transfer_word="Linked" if [ ${copy_all} == 1 ]; then @@ -146,7 +149,4 @@ else highlight -- Skipping icons. File already exists! fi -${PYTHON} limboai/gdextension/update_icons.py --silent -highlight -- Icon declarations updated. - highlight Setup complete.