forked from jakkra/ZSWatch-HW
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update diff.yml - ci: Fix kidiff output resolution to a valid range. - ci: Update uploaded artifact name in diff.yml - Fix cherry-pick conflict - Fix path to ci workflow READE badge.
- Loading branch information
Showing
3 changed files
with
28 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,46 @@ | ||
name: Diff | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request_target: | ||
types: | ||
- closed | ||
push: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/inti-cmnb/kicad8_auto_full:latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
KICAD_LIBRARY: /home/runner/work/ZSWatch-HW/ZSWatch-HW/library | ||
|
||
steps: | ||
- name: Checkout-Branch | ||
- name: Checkout branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.ref_name }} | ||
path: modified | ||
submodules: recursive | ||
|
||
- name: Checkout-main | ||
- name: Checkout main | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
path: original | ||
submodules: recursive | ||
|
||
- name: Dependencies | ||
run: git clone https://github.com/Kampi/KiCad.git library | ||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
name: Production | ||
|
||
on: | ||
pull_request: | ||
workflow_dispatch: | ||
pull_request_target: | ||
types: | ||
- closed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters