-
Notifications
You must be signed in to change notification settings - Fork 8
91 lines (87 loc) · 2.18 KB
/
build.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: CI
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ main ]
paths:
- 'input/*'
- 'output/**/*.kicad_pcb'
- 'config.kibot.yaml'
pull_request:
branches: [ main ]
paths:
- 'input/*'
- 'config.kibot.yaml'
- 'output/**/*.kicad_pcb'
workflow_dispatch:
jobs:
PCB:
runs-on: ubuntu-latest
name: Generate PCBs using Ergogen
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Generate unrouted PCBs
run: npm run gen_pcb
- name: Save the PCBs
uses: actions/upload-artifact@v3
with:
name: pcbs
path: output/
Images:
runs-on: ubuntu-latest
name: Generate PCB images
needs: PCB
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Download PCBs
uses: actions/download-artifact@v3
with:
name: pcbs
path: output/
- name: Generate images
run: npm run gen_images
- name: Retrieve results
uses: actions/upload-artifact@v3
with:
name: Images
path: images/
Kibot:
runs-on: ubuntu-latest
name: Generate Gerber & Drill files, documentation, etc
needs: PCB
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Download PCBs
uses: actions/download-artifact@v3
with:
name: pcbs
path: output/
- name: Generate Kibot files
run: npm run gen_kibot
- name: Update permissions
run: sudo chmod -R a+r output/
- name: Retrieve results
uses: actions/upload-artifact@v3
with:
name: Kibot_output
path: |
output/
!output/**/fp-info-cache