forked from linalinn/kicad-render
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
25 lines (24 loc) · 1015 Bytes
/
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
# 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
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/micro-henry/kicad-render:nightly'
args:
- bash
- -c
- if [ -n "$INPUT_ANIMATION" ]; then render-pcb.sh -f "$INPUT_PCB_FILE" -o "$INPUT_OUTPUT_PATH" -b "$INPUT_BACKGROUND" -a "$INPUT_ANIMATION"; else render-pcb.sh -f "$INPUT_PCB_FILE" -o "$INPUT_OUTPUT_PATH" -b "$INPUT_BACKGROUND"; fi