diff --git a/.github/kibot-diff.yml b/.github/kibot-diff.yml new file mode 100644 index 0000000..1bef6c5 --- /dev/null +++ b/.github/kibot-diff.yml @@ -0,0 +1,33 @@ +kibot: + version: 1 +global: + out_dir: output +preflight: + check_zone_fills: true + erc: false + drc: false + +outputs: + - name: Info + type: info + + - name: 'print_sch' + type: pdf_sch_print + dir: sch + + - name: Diff Schematic + type: diff + dir: sch + options: + only_different: true + old: xxBASE + pcb: false + + - name: Diff Layout + type: diff + dir: pcb + options: + only_different: true + old: xxBASE + pcb: true + dpi: 400 diff --git a/.github/workflows/kibot.yml b/.github/workflows/kibot.yml new file mode 100644 index 0000000..fc351ff --- /dev/null +++ b/.github/workflows/kibot.yml @@ -0,0 +1,67 @@ +name: KiBot + +on: [push, pull_request, workflow_dispatch] + +jobs: + diffpr: + name: Pull Request Difference + runs-on: ubuntu-latest + if: ${{ github.base_ref }} + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Tag PR base + run: | + git tag xxBASE ${{ github.event.pull_request.base.sha }} + git log -n1 xxBASE + - uses: INTI-CMNB/KiBot@v2_k9 + with: + dir: diff + config: .github/kibot-diff.yml + schema: design/Marble.kicad_sch + board: design/Marble.kicad_pcb + verbose: 3 + - name: Upload Diff + id: diff + uses: actions/upload-artifact@v4 + with: + name: pr-diff + compression-level: 9 + if-no-files-found: 'error' + path: diff + + basepr: + name: Difference since ${{ matrix.base }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + # update me after each release! + base: ["v1.4.3"] + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + fetch-tags: true + - name: Tag PR base + run: | + git tag xxBASE ${{ matrix.base }} + git log -n1 xxBASE + - uses: INTI-CMNB/KiBot@v2_k9 + with: + dir: diff + config: .github/kibot-diff.yml + schema: design/Marble.kicad_sch + board: design/Marble.kicad_pcb + verbose: 3 + - name: Upload Diff + id: diff + uses: actions/upload-artifact@v4 + with: + name: base-diff + compression-level: 9 + if-no-files-found: 'error' + path: diff