-
Notifications
You must be signed in to change notification settings - Fork 191
54 lines (53 loc) · 1.76 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
on: [push, pull_request, workflow_dispatch]
name: Build
jobs:
generate:
runs-on: ubuntu-latest
name: Generate
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js 21
uses: actions/setup-node@v4
with:
node-version: 21.x
- name: Install dependencies
run: npm install
- name: Generate unrouted PCBs
run: npm run gen
- name: Export DSN for main PCB
uses: ./.github/actions/export-dsn
with:
pcb_file: output/pcbs/board.kicad_pcb
dsn_file: output/pcbs/board.dsn
- name: Autoroute main PCB
uses: ./.github/actions/autoroute
with:
dsn_file: output/pcbs/board.dsn
ses_file: output/pcbs/board.ses
- name: Import SES into main PCB
uses: ./.github/actions/import-ses
with:
pcb_input_file: output/pcbs/board.kicad_pcb
pcb_output_file: output/pcbs/board_routed.kicad_pcb
ses_file: output/pcbs/board.ses
- name: Export Gerbers for top plate
uses: ./.github/actions/export-gerbers
with:
pcb_file: output/pcbs/top_plate.kicad_pcb
gerbers_dir: output/gerbers/top_plate
- name: Export Gerbers for bottom plate
uses: ./.github/actions/export-gerbers
with:
pcb_file: output/pcbs/bottom_plate.kicad_pcb
gerbers_dir: output/gerbers/bottom_plate
- name: Export Gerbers for main PCB
uses: ./.github/actions/export-gerbers
with:
pcb_file: output/pcbs/board.kicad_pcb
gerbers_dir: output/gerbers/board
- name: Persist output
uses: actions/upload-artifact@v4
with:
name: samoklava-routed-pcbs-and-gerbers
path: output