-
Notifications
You must be signed in to change notification settings - Fork 4
/
action.yaml
28 lines (27 loc) · 1.11 KB
/
action.yaml
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
# action.yml
name: 'kicad render pcb'
description: 'Render KiCad PCBs top, bottom optionally render and gif or mp4 of the PCB rotating'
inputs:
pcb_file: # id of input
description: 'Path to your .kicad_pcb'
required: true
output_path:
description: 'path to where top.png and bottom.png should be created'
required: true
zoom:
description: 'Camera zoom, default 1'
required: false
background:
description: 'Image background. Options: transparent, opaque. Default: transparent for PNG, opaque for JPEG'
required: false
default: 'transparent'
animation:
description: 'If an animation of the PCB rotating should be rendered (mp4 or gif) (background dose not apply)'
required: false
runs:
using: 'docker'
image: 'docker://ghcr.io/linalinn/kicad-render:nightly-2024-05-19-12-16'
args:
- bash
- -c
- if [ -n "$INPUT_ANIMATION" ]; then render-pcb.sh -f "$INPUT_PCB_FILE" -o "$INPUT_OUTPUT_PATH" -b "$INPUT_BACKGROUND" -z "$INPUT_ZOOM" -a "$INPUT_ANIMATION"; else render-pcb.sh -f "$INPUT_PCB_FILE" -o "$INPUT_OUTPUT_PATH" -b "$INPUT_BACKGROUND" -z "$INPUT_ZOOM"; fi