-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
46 lines (45 loc) · 1.26 KB
/
action.yml
File metadata and controls
46 lines (45 loc) · 1.26 KB
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: KiCad Release Builder
description: Build KiCad project outputs inside a Docker container on tag push
author: Simon Hobbs
inputs:
path:
description: Path to the kicad project
required: true
default: ./
project:
description: The base name of the KiCad board (without extension)
required: true
default: myboard
version:
description: Version number
required: false
default: ${{ github.sha }}
output_path:
description: Build directory
required: false
default: build
make-target:
description: Target to invoke in the Makefile
required: false
default: all
runs:
using: composite
steps:
- name: Set up Docker
shell: bash
run: |
docker build -t kicad-release "${{ github.action_path }}"
- name: Run Makefile in container
shell: bash
run: |
docker run --rm \
-v "$PWD:/workspace" \
-v "$GITHUB_WORKSPACE/${{ inputs.path }}:/project" \
-v "$GITHUB_WORKSPACE/${{ inputs.output_path }}:/output" \
-w /project \
-e OUTDIR=/output \
-e PROJECT=${{ inputs.project }} \
-e VERSION=${{ inputs.version }} \
-e DIR=${{ inputs.path }} \
kicad-release \
make ${{ inputs.make-target }}