From 02b8af50a7cea0890c33c0fa1461726e09b72feb Mon Sep 17 00:00:00 2001 From: "J.P. Krauss" Date: Fri, 6 Mar 2026 08:56:17 -0800 Subject: [PATCH] Add Update XML as separate pre-processing step --- .gitea/workflows/ci.yaml | 5 +++++ Test_5.kicad_sch | 10 +++++----- kibot/yaml/kibot_pre_update_xml.yaml | 9 +++++++++ sheets/Architecture.kicad_sch | 6 +++--- 4 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 kibot/yaml/kibot_pre_update_xml.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a7f4ad0..3009591 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -120,6 +120,11 @@ jobs: path: ~/3d_models key: 3d_models + - name: Run KiBot (Update XML) + uses: inti-cmnb/kibot@${{ env.kibot_tag }} + with: + config: kibot/yaml/kibot_pre_update_xml.yaml + - name: Run KiBot (Preprocessing) uses: inti-cmnb/kibot@${{ env.kibot_tag }} with: diff --git a/Test_5.kicad_sch b/Test_5.kicad_sch index aff14f4..9fe5d43 100644 --- a/Test_5.kicad_sch +++ b/Test_5.kicad_sch @@ -623,7 +623,7 @@ ) (uuid "fd9fe035-5933-4166-bdf5-daf42a1a401a") ) - (text_box "kibot_image_blender_3d_angled_top" + (text_box "Replace this with \"kibot_image_blender_3d_angled_top\" to invoke the Blender 3D Rendering output." (exclude_from_sim no) (at 190.5 39.37 0) (size 74.93 50.8) @@ -736,7 +736,7 @@ ) (uuid "b25ebab3-7089-45e6-b13e-efd73a0ad216") ) - (text_box "kibot_image_blender_3d_angled_bottom" + (text_box "Replace this with \"kibot_image_blender_3d_angled_bottom\" to invoke the Blender 3D Rendering output." (exclude_from_sim no) (at 190.5 101.6 0) (size 74.93 50.8) @@ -839,7 +839,7 @@ ) ) (instances - (project "Test_4" + (project "Test_5" (path "/8bfb0b6c-9e3a-4761-bc1e-4eb40915aa0b" (page "7") ) @@ -881,7 +881,7 @@ ) ) (instances - (project "Test_4" + (project "Test_5" (path "/8bfb0b6c-9e3a-4761-bc1e-4eb40915aa0b" (page "2") ) @@ -923,7 +923,7 @@ ) ) (instances - (project "Test_4" + (project "Test_5" (path "/8bfb0b6c-9e3a-4761-bc1e-4eb40915aa0b" (page "3") ) diff --git a/kibot/yaml/kibot_pre_update_xml.yaml b/kibot/yaml/kibot_pre_update_xml.yaml new file mode 100644 index 0000000..81af713 --- /dev/null +++ b/kibot/yaml/kibot_pre_update_xml.yaml @@ -0,0 +1,9 @@ +# KiBot preflight for updating the Schematic XML +# https://kibot.readthedocs.io/en/latest/configuration/preflights/update_xml.html + +kibot: + version: 1 + +preflight: + update_xml: true + diff --git a/sheets/Architecture.kicad_sch b/sheets/Architecture.kicad_sch index 3968720..b82735d 100644 --- a/sheets/Architecture.kicad_sch +++ b/sheets/Architecture.kicad_sch @@ -245,7 +245,7 @@ ) ) (instances - (project "Test_4" + (project "Test_5" (path "/8bfb0b6c-9e3a-4761-bc1e-4eb40915aa0b/f6afef58-d841-4ad6-baf9-746b0a35f011" (page "6") ) @@ -397,7 +397,7 @@ ) ) (instances - (project "Test_4" + (project "Test_5" (path "/8bfb0b6c-9e3a-4761-bc1e-4eb40915aa0b/f6afef58-d841-4ad6-baf9-746b0a35f011" (page "5") ) @@ -459,7 +459,7 @@ ) ) (instances - (project "Test_4" + (project "Test_5" (path "/8bfb0b6c-9e3a-4761-bc1e-4eb40915aa0b/f6afef58-d841-4ad6-baf9-746b0a35f011" (page "4") )