forked from jakkra/ZSWatch-HW
-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (38 loc) · 1.35 KB
/
diff.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Diff
on:
push:
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/inti-cmnb/kicad8_auto_full:latest
steps:
- name: Checkout branch
uses: actions/checkout@v4
with:
ref: ${{ github.ref_name }}
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 --diff_mode red_green --all_pages --output_dir diff-schematics --no_reader --keep_pngs --resolution 400
- name: Create layout diff
run: |
kicad-diff.py original/project/ZSWatch.kicad_pcb modified/project/ZSWatch.kicad_pcb --diff_mode red_green --all_pages --output_dir diff-layout --no_reader --keep_pngs --resolution 400
- name: Upload Layout Diff
uses: actions/upload-artifact@v4
with:
name: "diff-layout-${{ github.ref_name }}"
path: diff-layout
if-no-files-found: ignore
- name: Upload Schematics Diff
uses: actions/upload-artifact@v4
with:
name: "diff-schematics-${{ github.ref_name }}"
path: diff-schematics
if-no-files-found: ignore