forked from soundmonster/samoklava
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (46 loc) · 1.44 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
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: |
cp -r ergogen/* ./
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: /github/workspace/output/pcbs/board.dsn
- name: Autoroute main PCB
uses: ./.github/actions/autoroute
with:
dsn_file: /github/workspace/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 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