Skip to content

Update production.yml #24

Update production.yml

Update production.yml #24

Workflow file for this run

name: Diff
on:
push:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad8_auto_full:latest
permissions:
contents: write
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
path: modified
submodules: recursive
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main
path: original
submodules: recursive
- name: Create schematics diff
run: |
kicad-diff.py original/project/ZSWatch.kicad_sch modified/project/ZSWatch.kicad_sch --all_pages --output_dir diff-schematics --no_reader --keep_pngs
- name: Create layout diff
run: |
kicad-diff.py original/project/ZSWatch.kicad_pcb modified/project/ZSWatch.kicad_pcb --all_pages --output_dir diff-layout --no_reader --keep_pngs
- name: Upload Layout Diff
uses: actions/upload-artifact@v4
with:
name: "diff-layout-master-${{ github.ref_name }}"
path: diff-layout
if-no-files-found: ignore
- name: Upload Schematics Diff
uses: actions/upload-artifact@v4
with:
name: "diff-schematics-master-${{ github.ref_name }}"
path: diff-schematics
if-no-files-found: ignore