updates CI to generate up to date images of pcbs to bom
This commit is contained in:
128
.github/workflows/export-bom.yaml
vendored
128
.github/workflows/export-bom.yaml
vendored
@@ -6,6 +6,120 @@ on:
|
||||
types: [ published ]
|
||||
|
||||
jobs:
|
||||
|
||||
export-ecad:
|
||||
name: Export ECAD
|
||||
runs-on: ubuntu-latest
|
||||
container: setsoft/kicad_auto:ki7
|
||||
|
||||
steps:
|
||||
|
||||
- name: Generate Short SHA Environment Variable
|
||||
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
|
||||
|
||||
- name: Update system repositories, Install Required Libraries and Initialize git-lfs
|
||||
run: |
|
||||
apt update
|
||||
apt -y install git git-lfs zip librsvg2-bin imagemagick
|
||||
git lfs install
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: Extract branch name
|
||||
shell: bash
|
||||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
||||
id: extract_branch
|
||||
|
||||
- name: Update the PCBs with on default branch with git hash
|
||||
if: github.event_name == 'release' || steps.extract_branch.outputs.branch == env.main_branch
|
||||
run: |
|
||||
export COMMIT=$(git rev-parse --short HEAD)
|
||||
echo "COMMIT = ${COMMIT}"
|
||||
echo "ref: ${{ github.ref }}"
|
||||
echo "default: ${{ env.default }}"
|
||||
sed -i "s!<<hash>>!${COMMIT}!" pcb/mobo/mobo.kicad_pcb
|
||||
sed -i "s!<<hash>>!${COMMIT}!" pcb/feederFloor/feederFloor.kicad_pcb
|
||||
sed -i "s!<<hash>>!${COMMIT}!" pcb/indexingWheel/indexingWheel.kicad_pcb
|
||||
sed -i "s!<<hash>>!${COMMIT}!" pcb/light-diffusion/light-diffusion.kicad_pcb
|
||||
sed -i "s!<<hash>>!${COMMIT}!" pcb/photon-8mm-fid/photon-8mm-fid.kicad_pcb
|
||||
|
||||
- name: Update the PCBs with the git hash and BETA.
|
||||
if: steps.extract_branch.outputs.branch != env.main_branch
|
||||
run: |
|
||||
export COMMIT=$(git rev-parse --short HEAD)
|
||||
echo "COMMIT = ${COMMIT}"
|
||||
sed -i "s!<<hash>>!BETA-${COMMIT}!" pcb/mobo/mobo.kicad_pcb
|
||||
sed -i "s!<<hash>>!BETA-${COMMIT}!" pcb/feederFloor/feederFloor.kicad_pcb
|
||||
sed -i "s!<<hash>>!BETA-${COMMIT}!" pcb/indexingWheel/indexingWheel.kicad_pcb
|
||||
sed -i "s!<<hash>>!BETA-${COMMIT}!" pcb/light-diffusion/light-diffusion.kicad_pcb
|
||||
sed -i "s!<<hash>>!BETA-${COMMIT}!" pcb/photon-8mm-fid/fiducialBoard.kicad_pcb
|
||||
|
||||
- name: Generate Mobo Export Files
|
||||
run: |
|
||||
cd pcb/mobo
|
||||
rm -rf mobo/
|
||||
kibot -c ../../.github/workflows/scripts/kibot/config-2layer.kibot.yaml -e mobo.kicad_sch -b mobo.kicad_pcb -d mobo
|
||||
zip -r -j mobo.zip mobo/
|
||||
|
||||
- name: Generate Slot Export Files
|
||||
run: |
|
||||
cd pcb/feederFloor
|
||||
rm -rf feeder-floor/
|
||||
kibot -c ../../.github/workflows/scripts/kibot/config-2layer.kibot.yaml -e feederFloor.kicad_sch -b feederFloor.kicad_pcb -d slot
|
||||
zip -r -j slot.zip slot/
|
||||
|
||||
- name: Generate Indexing Wheel Export Files
|
||||
run: |
|
||||
cd pcb/indexingWheel
|
||||
rm -rf indexing-wheel/
|
||||
kibot -c ../../.github/workflows/scripts/kibot/config-2layer.kibot.yaml -e indexingWheel.kicad_sch -b indexingWheel.kicad_pcb -d indexing-wheel
|
||||
zip -r -j indexing-wheel.zip indexing-wheel/
|
||||
|
||||
- name: Generate Light Diffusion Export Files
|
||||
run: |
|
||||
cd pcb/light-diffusion
|
||||
rm -rf light-diffusion/
|
||||
kibot -c ../../.github/workflows/scripts/kibot/config-2layer.kibot.yaml -e light-diffusion.kicad_sch -b light-diffusion.kicad_pcb -d light-diffusion
|
||||
zip -r -j light-diffusion.zip light-diffusion/
|
||||
|
||||
- name: Generate Photon 8mm Fiducial Export Files
|
||||
run: |
|
||||
cd pcb/photon-8mm-fid
|
||||
rm -rf photon-8mm-fid/
|
||||
kibot -c ../../.github/workflows/scripts/kibot/config-2layer.kibot.yaml -e fiducialBoard.kicad_sch -b fiducialBoard.kicad_pcb -d photon-8mm-fid
|
||||
zip -r -j photon-8mm-fid.zip photon-8mm-fid/
|
||||
|
||||
- name: Zip PCB Export Files for Artifacts
|
||||
run: |
|
||||
cd pcb/
|
||||
zip -r -j Feeder-PCBs.zip photon-8mm-fid/photon-8mm-fid.zip light-diffusion/light-diffusion.zip indexingWheel/indexing-wheel.zip feederFloor/slot.zip mobo/mobo.zip
|
||||
|
||||
- name: Zip PCB Export Files for Release
|
||||
run: |
|
||||
cd pcb/
|
||||
zip -r -j Feeder-PCBs-${{ github.event.release.tag_name }}.zip photon-8mm-fid/photon-8mm-fid.zip light-diffusion/light-diffusion.zip indexingWheel/indexing-wheel.zip feederFloor/slot.zip mobo/mobo.zip
|
||||
|
||||
- name: Zip Top Images for BOM
|
||||
run: |
|
||||
mkdir pcb-images
|
||||
cp pcb/mobo/mobo/mobo-top.png pcb-images/mobo.png
|
||||
cp pcb/feederFloor/slot/feederFloor-top.png pcb-images/slot.png
|
||||
cp pcb/indexingWheel/indexingWheel/indexingWheel-top.png pcb-images/indexing-wheel.png
|
||||
cp pcb/photon-8mm-fid/photon-8mm-fid/fiducialBoard-top.png pcb-images/photon-8mm-fid.png
|
||||
cp pcb/photon-8mm-fid/photon-8mm-fid/fiducialBoard-top.png pcb-images/photon-8mm-fid.png
|
||||
zip -r -j pcb-images.zip pcb-images/
|
||||
|
||||
- name: Upload PCB Images as Artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: pcb-images
|
||||
path: pcb-images/
|
||||
if-no-files-found: error
|
||||
retention-days: 60
|
||||
|
||||
generate-bom:
|
||||
name: Generate BOM
|
||||
runs-on: ubuntu-20.04
|
||||
@@ -84,18 +198,26 @@ jobs:
|
||||
export DISPLAY=:5
|
||||
python3 .github/workflows/scripts/generate-stl-img.py ${SHORT_SHA}
|
||||
|
||||
- name: Download PCB Images
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: pcb-images
|
||||
|
||||
- name: Move PCB Images
|
||||
run: |
|
||||
|
||||
- name: Zip BOM Directory for Workflow Dispatch
|
||||
if: github.event_name != 'release'
|
||||
run: |
|
||||
zip -r Feeder-BOM.zip Feeder-${SHORT_SHA} Feeder-${SHORT_SHA}/img
|
||||
zip -r Feeder-BOM.zip Feeder-${SHORT_SHA} Feeder-${SHORT_SHA}/img pcb-images
|
||||
ls -al
|
||||
|
||||
- name: Zip BOM Directory for Release
|
||||
if: github.event_name == 'release'
|
||||
run: |
|
||||
zip -r Feeder-BOM-${{ github.event.release.tag_name }}.zip Feeder-${{ github.event.release.tag_name }} Feeder-${{ github.event.release.tag_name }}/img
|
||||
zip -r Feeder-BOM-${{ github.event.release.tag_name }}.zip Feeder-${{ github.event.release.tag_name }} Feeder-${{ github.event.release.tag_name }}/img pcb-images
|
||||
|
||||
- name: upload BOM results
|
||||
- name: Upload BOM results
|
||||
if: github.event_name != 'release'
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
||||
12
bom-12.csv
12
bom-12.csv
@@ -8,12 +8,12 @@ peel-worm-gear,,1,FDM,Download all 3D printed parts at the link at the top of th
|
||||
release-lever-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,
|
||||
slot-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,
|
||||
tape-guide-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,Used to guide tape into feeder for spools mounted beneath the machine.
|
||||
"PLA-filament ",https://90a1c75758623581b3f8-5c119c3de181c9857fcb2784776b17ef.ssl.cf2.rackcdn.com/611532_989269_03_front_zoom.jpg,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color.
|
||||
M5-t-slot-nut,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/946/94645a102-@1x_637691238154449529.png?ver=ImageNotFound,1,FST,https://www.mcmaster.com/94645A102/,,,
|
||||
M3x14mm-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/920/92095A168p1-b01-digitall@2x_636621121852034289.png,3,FST,https://www.mcmaster.com/92095A168/,,,
|
||||
M5x10mm-socket-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/901/90128a234-@4x_637648793587366175.png,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762
|
||||
M3x8mm-self-tapping-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/958/95893a189_5471d27b-8a4e-4cd5-bc6c-43c4b611d281@2x_637901339772075158.png,1,FST,https://www.mcmaster.com/95893A189/,,,
|
||||
M3x12mm-self-tapping-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/958/95893a403_0b3fd3a3-a747-4eb1-aca3-e40b2b59fed1@4x_637858920453111883.png,11,FST,https://www.mcmaster.com/95893A403/,,,
|
||||
"PLA-filament ",https://cdn.shopify.com/s/files/1/0570/4256/7355/files/filament.png?v=1686314492,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color.
|
||||
M5-t-slot-nut,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M5-tslot-nut.jpg?v=1686314676,1,FST,https://www.amazon.com/Fastener-Nickel-Plated-Sliding-Aluminum-Profile/dp/B086MKNYDS/ref=sxin_16_pa_sp_search_thematic_sspa,,,
|
||||
M3x14mm-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x14mm.png?v=1686314903,3,FST,https://www.mcmaster.com/92095A168/,,,
|
||||
M5x10mm-socket-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M5x10mm.png?v=1686314995,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762
|
||||
M3x8mm-self-tapping-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x8mm-self-tapping-flat-head.png?v=1686314923,1,FST,https://www.mcmaster.com/95893A189/,,,
|
||||
M3x12mm-self-tapping-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x12-self-tapping-flat-head.png?v=1686314903,11,FST,https://www.mcmaster.com/95893A403/,,,
|
||||
mobo,,1,PCA,,,,Click link above to download source
|
||||
slot,,1,PCA,,,,Click link above to download source
|
||||
drive-wheel,,1,PCB,,,,Click link above to download source
|
||||
|
||||
|
12
bom-16.csv
12
bom-16.csv
@@ -8,12 +8,12 @@ peel-worm-gear,,1,FDM,Download all 3D printed parts at the link at the top of th
|
||||
release-lever-16,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,
|
||||
slot-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,
|
||||
tape-guide-16,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,Used to guide tape into feeder for spools mounted beneath the machine.
|
||||
"PLA-filament ",https://90a1c75758623581b3f8-5c119c3de181c9857fcb2784776b17ef.ssl.cf2.rackcdn.com/611532_989269_03_front_zoom.jpg,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color.
|
||||
M5-t-slot-nut,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/946/94645a102-@1x_637691238154449529.png?ver=ImageNotFound,1,FST,https://www.mcmaster.com/94645A102/,,,
|
||||
M3x18mm-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/912/91294A135_6cdeb25e-0730-4c87-b88e-234fec2c64ab@4x_637977128906584194.png,3,FST,https://www.mcmaster.com/91294A135/,,,
|
||||
M5x10mm-socket-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/901/90128a234-@4x_637648793587366175.png,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762
|
||||
M3x8mm-self-tapping-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/958/95893a189_5471d27b-8a4e-4cd5-bc6c-43c4b611d281@2x_637901339772075158.png,1,FST,https://www.mcmaster.com/95893A189/,,,
|
||||
M3x12mm-self-tapping-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/958/95893a403_0b3fd3a3-a747-4eb1-aca3-e40b2b59fed1@4x_637858920453111883.png,11,FST,https://www.mcmaster.com/95893A403/,,,
|
||||
"PLA-filament ",https://cdn.shopify.com/s/files/1/0570/4256/7355/files/filament.png?v=1686314492,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color.
|
||||
M5-t-slot-nut,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M5-tslot-nut.jpg?v=1686314676,1,FST,https://www.amazon.com/Fastener-Nickel-Plated-Sliding-Aluminum-Profile/dp/B086MKNYDS/ref=sxin_16_pa_sp_search_thematic_sspa,,,
|
||||
M3x18mm-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x18mm.png?v=1686314956,3,FST,https://www.mcmaster.com/91294A135/,,,
|
||||
M5x10mm-socket-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M5x10mm.png?v=1686314995,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762
|
||||
M3x8mm-self-tapping-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x8mm-self-tapping-flat-head.png?v=1686314923,1,FST,https://www.mcmaster.com/95893A189/,,,
|
||||
M3x12mm-self-tapping-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x12-self-tapping-flat-head.png?v=1686314903,11,FST,https://www.mcmaster.com/95893A403/,,,
|
||||
mobo,,1,PCA,,,,Click link above to download source
|
||||
slot,,1,PCA,,,,Click link above to download source
|
||||
drive-wheel,,1,PCB,,,,Click link above to download source
|
||||
|
||||
|
12
bom-8.csv
12
bom-8.csv
@@ -10,12 +10,12 @@ spool-holder,,1,FDM,Download all 3D printed parts at the link at the top of the
|
||||
thimble,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,
|
||||
slot-bracket,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,,
|
||||
tape-guide-8-12,,1,FDM,Download all 3D printed parts at the link at the top of the page.,,Yes,Replaces the spool arm and thimble. Used to guide tape into feeder for spools mounted beneath the machine.
|
||||
"PLA-filament ",https://90a1c75758623581b3f8-5c119c3de181c9857fcb2784776b17ef.ssl.cf2.rackcdn.com/611532_989269_03_front_zoom.jpg,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color.
|
||||
M5-t-slot-nut,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/946/94645a102-@1x_637691238154449529.png?ver=ImageNotFound,1,FST,https://www.mcmaster.com/94645A102/,,,
|
||||
M3x14mm-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/920/92095A168p1-b01-digitall@2x_636621121852034289.png,3,FST,https://www.mcmaster.com/92095A168/,,,
|
||||
M5x10mm-socket-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/901/90128a234-@4x_637648793587366175.png,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762
|
||||
M3x8mm-self-tapping-flat-head,https://www.mcmaster.com/mvD/Contents/gfx/ImageCache/958/95893a189_5471d27b-8a4e-4cd5-bc6c-43c4b611d281@2x_637901339772075158.png,1,FST,https://www.mcmaster.com/95893A189/,,,
|
||||
M3x12mm-self-tapping-flat-head,https://www.mcmaster.com/mvC/Contents/gfx/ImageCache/958/95893a403_0b3fd3a3-a747-4eb1-aca3-e40b2b59fed1@4x_637858920453111883.png,11,FST,https://www.mcmaster.com/95893A403/,,,
|
||||
"PLA-filament ",https://cdn.shopify.com/s/files/1/0570/4256/7355/files/filament.png?v=1686314492,1.2,FIL,https://www.microcenter.com/product/611532/inland-175mm-black-pla-3d-printer-filament-1kg-spool-(22-lbs),,,Units in kg. Print both nozzle-rack and 2x z-gantry in a black color. Print top-light-mount and bottom-light-mount in a white color.
|
||||
M5-t-slot-nut,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M5-tslot-nut.jpg?v=1686314676,1,FST,https://www.amazon.com/Fastener-Nickel-Plated-Sliding-Aluminum-Profile/dp/B086MKNYDS/ref=sxin_16_pa_sp_search_thematic_sspa,,,
|
||||
M3x14mm-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x14mm.png?v=1686314903,3,FST,https://www.mcmaster.com/91294A133/,,,
|
||||
M5x10mm-socket-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M5x10mm.png?v=1686314995,1,FST,https://www.mcmaster.com/90128A234/,,,ISO4762
|
||||
M3x8mm-self-tapping-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x8mm-self-tapping-flat-head.png?v=1686314923,1,FST,https://www.mcmaster.com/95893A189/,,,
|
||||
M3x12mm-self-tapping-flat-head,https://cdn.shopify.com/s/files/1/0570/4256/7355/files/M3x12-self-tapping-flat-head.png?v=1686314903,11,FST,https://www.mcmaster.com/95893A403/,,,
|
||||
mobo,,1,PCA,,,,Click link above to download source
|
||||
slot,,1,PCA,,,,Click link above to download source
|
||||
drive-wheel,,1,PCB,,,,Click link above to download source
|
||||
|
||||
|
BIN
cad/asm12.FCStd
BIN
cad/asm12.FCStd
Binary file not shown.
Reference in New Issue
Block a user