Replies: 2 comments 2 replies
-
Hi memen45, I can not speak on if there is a command to get kibot to build all the variants, but I can tell you how I do it. I have a variants:
- name: 'PN-9999'
comment: 'PCBA Description'
type: kibom
file_id: 'PN:9999'
variant: 'ADD_USB_C' This file is then included into the import:
- file: variants.yaml I then have a build script which will use yq to query the number of variants in the len=$(yq '.variants | length' "variants,yaml") I'll then loop over building each variant one at a time. Something like this. for (( i=0; i<$len; i++ ))
do
name="$(yq '.variants['${i}'].name' "variants.yaml")"
kibot --board-file "PN-9999.kicad_pcb" --schematic "PN-9999.kicad_sch" --global-redef "variant=${name}" --out-dir "PCBA_${name} --plot-config "build.kibot.yaml""
# Do some other stuff
done I am curious if there is a better way of doing this. However, it might not work for me as I am doing some other stuff prior to artifact publishing. Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Hi @memen45 ! You must do it in separated calls. Like @Cimos suggests. |
Beta Was this translation helpful? Give feedback.
-
It is possible to set the
variant
option for many outputs individually, and it is also possible to set a globalvariant
. I use the GitHub Action workflow, and everything is working perfectly, however, I would like to create the renders, gerbers etc. for all the variants available. Since the globalvariant
option only accepts a single string, I do not see how to generate for all variants. Any ideas?Beta Was this translation helpful? Give feedback.
All reactions