Commit Graph

125 Commits

Author SHA1 Message Date
Tim Hadwen
a9b5e1fa07 Add BOM group_fields for MPN and deactivate-old CI step
- Add group_fields: [Value, Footprint, mpn] to all BOM outputs to prevent
  components with different MPNs from being merged into one row
- Add deactivate-old step to inventree_main release pipeline

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-15 17:38:52 +10:00
Tim Hadwen
f54fb00f57 Add name text variable and enable panel jobs on dev
- Added 'name' text variable to pcb_main, sch, mech, pos kibot configs
- Removed main_rules restriction from generate_gerbers, generate_position, generate_panel
- Updated inventree_dev to depend on gerbers, position, panel jobs

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 07:45:40 +10:00
Tim Hadwen
7abd4621a9 Fix YAML syntax in create_release job
Simplified release job - removed complex asset links that caused YAML error.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 07:27:05 +10:00
Tim Hadwen
e5c5746b2c Fix version extraction: dev branch uses 'dev', main extracts from commit
- dev branch: always VERSION="dev"
- main branch: extract version from commit message (e.g., "V1.2")
- Add KIBOT_VAR_name to all kibot script sections
- Add asset link to release

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 07:12:57 +10:00
Tim Hadwen
3778a453e8 Simplify release to single zip with all fabrication outputs
Creates ${PROJECT_NAME}_${VERSION}.zip containing all gerbers,
BOMs, images, placement files, 3D models, etc.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 22:22:53 +10:00
Tim Hadwen
6894ca56c7 Add KIBOT_VAR_name to fabrication jobs
Ensures part number text variable is set correctly on silkscreen.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 22:16:06 +10:00
Tim Hadwen
5ac89f2df3 Fix InvenTree uploads to use dev revision for MRs
- Dev branch commits: upload to "dev" revision (was dry-run)
- MRs targeting main: upload to "dev" revision (was actual version)
- Actual main commits: upload to versioned revision

This allows pre-ordering parts during development while preventing
accidental version uploads until code is actually merged.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 22:30:23 +10:00
timmyhadwen
78fa1c0652 Simplify create_release to use native GitLab release keyword 2026-01-17 20:10:30 +10:00
timmyhadwen
9b4e101400 Fix upload_packages: Python one-liner to avoid YAML issues 2026-01-17 15:17:02 +10:00
timmyhadwen
2b717d1795 Fix YAML syntax for Python heredoc 2026-01-17 15:16:14 +10:00
timmyhadwen
0dc6ff725f Fix upload_packages: use Python urllib (no curl/wget in image) 2026-01-17 15:15:36 +10:00
timmyhadwen
1975291cea Fix upload_packages: use pre-installed curl 2026-01-17 14:58:16 +10:00
timmyhadwen
e530a3768b Fix upload_packages: use wget instead of curl (dependency conflict) 2026-01-17 14:38:16 +10:00
timmyhadwen
614b566d31 Add complete KiCad CI pipeline with hfsntree integration
Pipeline stages:
- preflight: extract_version, run_erc, run_drc
- fabrication: schematic, BOM, 3D, gerbers, position, panel
- inventree: dry-run on dev, full upload on main
- release: package upload and GitLab release

Features:
- Version extraction from MR title (V1.0, V1.1, etc.)
- Version injection into KiBot outputs
- Samsung P&P file generation
- Panel gerber generation

Usage: Include this file in project CI and set PROJECT_NAME variable.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 10:23:05 +10:00
timmyhadwen
1cae44ffdc Add env var fallback for KiBot text variables
- rev/rev_pcb: Use KIBOT_VAR_rev if set, else git describe
- name: Use KIBOT_VAR_name if set, else extract from filename

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-16 23:24:13 +10:00
timmyhadwen
c3b5ada5d8 WIP 2025-09-07 17:14:32 +10:00
timmyhadwen
a9ca11b8b8 Bump down to 1.8.3 2025-09-07 15:06:43 +10:00
Tim Hadwen
220e70082f Merged main into kicad9 2025-08-31 17:40:03 +10:00
andrewc
c3aa9c6b28 FIX: variant handling, kintree cli syntax, and PCB image handling 2025-07-29 12:05:52 +10:00
andrewc
82611b2951 FIX: fix path to template schematic for post panel scripting 2025-07-22 14:25:58 +10:00
ac
664fc82490 FIX: Author initials parsing 2025-07-21 16:45:56 +10:00
ac
a0789f749b FIX: tag parsing in release job 2025-07-21 16:19:14 +10:00
ac
85ae8ad7e2 FIX: tag parsing 2025-07-21 16:02:17 +10:00
andrewc
1df81db282 FIX: cut down bash function in release job so it doesn't complain about syntax errors. 2025-07-16 12:17:57 +10:00
andrewc
61b08496bd FEAT: added standardised text to panels to help with pnp 2025-07-02 14:04:49 +10:00
andrewc
2f71a8fd94 FEAT: added DWN, CHK, APP to templates, added hfs template. 2025-07-01 09:45:46 +10:00
Tim Hadwen
1c1f8cbcbd Edit kibot-ci.yml 2025-05-22 02:24:52 +00:00
Tim Hadwen
d599f31d71 Edit kibot-ci.yml 2025-05-22 02:14:17 +00:00
Tim Hadwen
1e6e4a3ed6 Edit kibot-ci.yml 2025-05-22 02:03:47 +00:00
Tim Hadwen
c68606b31d Edit kibot-ci.yml 2025-05-22 01:53:28 +00:00
timmyhadwen
87d40db02b Updaed version 2025-05-21 19:46:35 +10:00
Gwyneth
06bfb9533e altered kibot-ci.yml image name 2025-05-21 18:21:28 +10:00
gwyneth
acfea6e804 Switched to kicad9 2025-05-21 18:04:25 +10:00
andrewc
901c8cf848 FIX: allow management of panel files to fail as there may not be any 2025-02-25 15:01:27 +10:00
andrewc
99af6dd08f Stop generating printed stencils for panels 2025-02-14 09:57:20 +10:00
andrewc
5620b01227 Changed kibot flags for drc/erc for kicad8 2025-02-04 13:01:22 +10:00
andrewc
088d11339d Updated ki-ntree and stopped allowing release to always succeed 2025-01-16 15:44:25 +10:00
andrewc
80a2d5b1c0 Dry run for all jobs except when on main 2024-12-20 15:24:20 +10:00
andrewc
972a452fea Tweaked inventree_job 2024-12-13 11:30:25 +10:00
andrewc
2f42e02e3e Added dry run when on dev 2024-12-13 11:24:03 +10:00
andrewc
913f0c356f Update kibot, fixup kibot preflight opttions 2024-11-18 17:03:01 +10:00
andrewc
827bd84714 Upload zipped gerbers to inventree PCB part, added revision to jlc zip
file name
2024-11-18 14:01:35 +10:00
andrewc
8deba4f856 Remove hardcoded debug line 2024-11-18 12:39:22 +10:00
andrewc
8e2516d2d0 Allow for a preceeding letter in partnumber of pcb 2024-11-18 11:40:49 +10:00
andrewc
cee186c17c Added attachments to PCB and PCBA parts 2024-11-04 17:22:42 +10:00
andrewc
111a9bc042 Add description to PCB and PCBA parts 2024-10-31 11:16:07 +10:00
andrewc
72cdc871a3 Added render of bland and populated pcb 2024-10-30 16:47:49 +10:00
andrewc
f9ec76c65a Do the curl trick in the upload job too 2024-10-25 13:41:50 +10:00
ac
cc2f1a7605 Fixup curl install issue with new kibot image 2024-10-25 10:06:23 +10:00
ac
1388e1aa20 Update to latest version of kibot to fix bom items being messed up 2024-10-25 09:43:05 +10:00