-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (49 loc) · 1.88 KB
/
Copy pathgeneric-pan-tilt-pcb.yml
File metadata and controls
52 lines (49 loc) · 1.88 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
47
48
49
50
51
52
# Originally from
# https://github.com/INTI-CMNB/kicad-ci-test-spora/blob/a661421dc6fa2c3f5aff21438a360a9419b7d3c0/.github/workflows/spora_main.yml
name: "KiCad CI/CD for generic-pan-tilt-pcb"
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
paths:
- 'generic-pan-tilt-pcb/*.kicad_sch'
- 'generic-pan-tilt-pcb/*.kicad_pcb'
- 'generic-pan-tilt-pcb/*.kibot.yaml'
- '.github/workflows/generic-pan-tilt-pcb.yml'
pull_request:
paths:
- 'generic-pan-tilt-pcb/*.kicad_sch'
- 'generic-pan-tilt-pcb/*.kicad_pcb'
- 'generic-pan-tilt-pcb/*.kibot.yaml'
- '.github/workflows/generic-pan-tilt-pcb.yml'
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Fabrication:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
# This is a KiCad 5 example, KiCad 6 uses v2_k6
- uses: INTI-CMNB/KiBot@v2_k8
env:
DIGIKEY_CLIENT_ID: ${{ secrets.DIGIKEY_CLIENT_ID }}
DIGIKEY_CLIENT_SECRET: ${{ secrets.DIGIKEY_CLIENT_SECRET }}
MOUSER_PART_API_KEY: ${{ secrets.MOUSER_PART_API_KEY }}
with:
# Required - kibot config file
config: generic-pan-tilt-pcb/generic-pan-tilt-pcb.kibot.yaml
# optional - prefix to output defined in config
dir: generic-pan-tilt-pcb/Fabrication
# optional - schematic file
schema: 'generic-pan-tilt-pcb/generic-pan-tilt-pcb.kicad_sch'
# optional - PCB design file
board: 'generic-pan-tilt-pcb/generic-pan-tilt-pcb.kicad_pcb'
- name: Retrieve results
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: Fabrication_generic-pan-tilt-pcb
path: |
generic-pan-tilt-pcb/Fabrication/
if-no-files-found: warn