add diff function
This commit is contained in:
@@ -205,6 +205,13 @@ jobs:
|
|||||||
name: JLCPCB-${{ steps.layers.outputs.layers }}layer
|
name: JLCPCB-${{ steps.layers.outputs.layers }}layer
|
||||||
path: Generated/*_JLCPCB_compress.zip
|
path: Generated/*_JLCPCB_compress.zip
|
||||||
|
|
||||||
|
- name: Retrieve results - Diff Report
|
||||||
|
if: steps.generate_diff.outputs.has_diff == 'true'
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: Schematic-PCB-Diff
|
||||||
|
path: Generated/DIFF
|
||||||
|
|
||||||
# Deploy to documentation branch
|
# Deploy to documentation branch
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: kicad-kibot-runner
|
runs-on: kicad-kibot-runner
|
||||||
|
|||||||
32
kibot.yaml
32
kibot.yaml
@@ -232,6 +232,38 @@ outputs:
|
|||||||
output: '%f-report.%x'
|
output: '%f-report.%x'
|
||||||
do_convert: true
|
do_convert: true
|
||||||
|
|
||||||
|
# Schematic diff
|
||||||
|
- name: 'sch_diff'
|
||||||
|
comment: "Schematic diff PDF"
|
||||||
|
type: diff
|
||||||
|
dir: DIFF
|
||||||
|
disabled_by_default: false
|
||||||
|
options:
|
||||||
|
output: '%f-schematic-diff.%x'
|
||||||
|
format: PDF
|
||||||
|
diff_mode: 'red_green'
|
||||||
|
old: 'HEAD~1'
|
||||||
|
new: 'HEAD'
|
||||||
|
cache_dir: '.cache'
|
||||||
|
add_link_id: true
|
||||||
|
only_different: true
|
||||||
|
|
||||||
|
# PCB diff
|
||||||
|
- name: 'pcb_diff'
|
||||||
|
comment: "PCB diff PDF"
|
||||||
|
type: diff
|
||||||
|
dir: DIFF
|
||||||
|
disabled_by_default: false
|
||||||
|
options:
|
||||||
|
output: '%f-pcb-diff.%x'
|
||||||
|
format: PDF
|
||||||
|
diff_mode: 'red_green'
|
||||||
|
old: 'HEAD~1'
|
||||||
|
new: 'HEAD'
|
||||||
|
cache_dir: '.cache'
|
||||||
|
pcb: true
|
||||||
|
only_different: true
|
||||||
|
|
||||||
# JLCPCB fabrication package
|
# JLCPCB fabrication package
|
||||||
- name: 'jlcpcb_gerbers'
|
- name: 'jlcpcb_gerbers'
|
||||||
comment: "Gerbers for JLCPCB"
|
comment: "Gerbers for JLCPCB"
|
||||||
|
|||||||
Reference in New Issue
Block a user