Skip to content

Commit

Permalink
chore: removed interactive bom
Browse files Browse the repository at this point in the history
  • Loading branch information
CloudyPadmal committed Oct 19, 2023
1 parent 739d5d9 commit ee6c9ed
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 66 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/hardware-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ jobs:
- name: Install dependencies
run: |
pip install --no-compile kibot
wget https://github.com/INTI-CMNB/InteractiveHtmlBom/releases/download/v2.3.4-2/interactivehtmlbom.inti-cmnb_2.3.4-2_all.deb
sudo dpkg -i interactivehtmlbom.inti-cmnb_2.3.4-2_all.deb
pip install pcb-tools image
sudo apt install xvfb recordmydesktop xdotool libmagickwand-dev librsvg2-bin imagemagick poppler-utils
Expand Down Expand Up @@ -80,37 +78,3 @@ jobs:
name: design-rule-check
path: schematics/PSLab-drc.txt

- name: Setup board diff images
run: |
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
python3 scripts/pslab_gerber_generator.py
git clone --quiet --branch=diff-img https://$GITHUB_ACTOR:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY diff-img > /dev/null
cd diff-img
convert -colorspace gray front-layer.png old-front.png
convert -colorspace gray bottom-layer.png old-bottom.png
convert -colorspace gray ground-layer.png old-ground.png
convert -colorspace gray power-layer.png old-power.png
mv ../output/Images/* .
convert -colorspace gray front-layer.png new-front.png
convert -colorspace gray bottom-layer.png new-bottom.png
convert -colorspace gray ground-layer.png new-ground.png
convert -colorspace gray power-layer.png new-power.png
composite -stereo 0 old-front.png new-front.png diff-front.png
composite -stereo 0 old-bottom.png new-bottom.png diff-bottom.png
composite -stereo 0 old-ground.png new-ground.png diff-ground.png
composite -stereo 0 old-power.png new-power.png diff-power.png
mv PSLab.pdf old-PSLab.pdf
cp ../docs/schematics/PSLab.pdf .
pdftoppm old-PSLab.pdf old-PSLab -png -rx 300 -ry 300
pdftoppm PSLab.pdf new-PSLab -png -rx 300 -ry 300
convert -colorspace gray old-PSLab-1.png old-PSLab.png
convert -colorspace gray new-PSLab-1.png new-PSLab.png
composite -stereo 0 old-PSLab.png new-PSLab.png diff-schematic.png
rm -rf old-* new-*
git checkout --orphan temporary
git add .
git commit -m "chore: updating board diff images"
git branch -D diff-img
git branch -m diff-img
git push origin diff-img -f --quiet > /dev/null
61 changes: 31 additions & 30 deletions schematics/CI.kibot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,36 +64,35 @@ outputs:
use_alt: false
variant: ''
###############################################################################
- name: 'interactive_bom'
comment: "Interactive Bill of Materials"
type: ibom
dir: '../docs/components'
options:
hide_pads: false
show_fabrication: false
hide_silkscreen: false
highlight_pin1: true
no_redraw_on_drag: false
board_rotation: 0
checkboxes: 'Sourced,Placed'
bom_view: 'left-right'
layer_view: 'FB'
name_format: 'InteractiveBoM'
output: ''
include_tracks: false
include_nets: false
sort_order: 'C,R,L,D,U,Y,X,F,SW,A,~,HS,CNN,J,P,NT,MH'
blacklist: 'DNF*'
no_blacklist_virtual: false
blacklist_empty_val: false
netlist_file: ''
extra_fields: ''
normalize_field_case: false
variant_field: ''
variants_whitelist: ''
variants_blacklist: ''
dnp_field: ''

# - name: 'interactive_bom'
# comment: "Interactive Bill of Materials"
# type: ibom
# dir: '../docs/components'
# options:
# hide_pads: false
# show_fabrication: false
# hide_silkscreen: false
# highlight_pin1: true
# no_redraw_on_drag: false
# board_rotation: 0
# checkboxes: 'Sourced,Placed'
# bom_view: 'left-right'
# layer_view: 'FB'
# name_format: 'InteractiveBoM'
# output: ''
# include_tracks: false
# include_nets: false
# sort_order: 'C,R,L,D,U,Y,X,F,SW,A,~,HS,CNN,J,P,NT,MH'
# blacklist: 'DNF*'
# no_blacklist_virtual: false
# blacklist_empty_val: false
# netlist_file: ''
# extra_fields: ''
# normalize_field_case: false
# variant_field: ''
# variants_whitelist: ''
# variants_blacklist: ''
# dnp_field: ''
###############################################################################
- name: 'gerber_generator'
comment: "Gerbers files"
Expand Down Expand Up @@ -124,12 +123,14 @@ outputs:
layers:
- 'F.SilkS'
- 'F.Mask'
- 'F.Paste'
- 'L1.Front'
- 'L2.Ground'
- 'L3.Power'
- 'L4.Signal'
- 'B.Mask'
- 'B.SilkS'
- 'B.Paste'
- 'Edge.Cuts'
- 'Eco1.User'

Expand Down

0 comments on commit ee6c9ed

Please sign in to comment.