-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (63 loc) 路 1.91 KB
/
Copy pathkibot.yml
File metadata and controls
67 lines (63 loc) 路 1.91 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: KiBot
# Controls when the action will run.
on:
push:
paths:
- "board/output/pcbs/*.kicad_sch"
- "board/output/pcbs/*.kicad_pcb"
- "board/*.kibot.yaml"
- ".github/workflows/kibot.yml"
tags:
- "v*.*.*"
pull_request:
paths:
- "board/output/pcbs/*.kicad_sch"
- "board/output/pcbs/*.kicad_pcb"
- "board/*.kibot.yaml"
- ".github/workflows/kibot.yml"
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
KIBOT:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v3
# with:
# config: board/sessile.kibot.yaml
# dir: board/output/pcbs
# # variant: board
# board: board/output/pcbs/sessile.kicad_pcb
# schema: board/output/pcbs/sessile.kicad_sch
# skip: erc
# targets: ZIP_ASSEMBLY
- run: | # use https://nickcoutsos.github.io/keymap-layout-tools/ to generate info.json
wget https://set-soft.github.io/debian/kibot.sources
sudo cp kibot.sources /etc/apt/sources.list.d/
sudo apt update
sudo apt install -y kibot
kibot \
-c board/sessile.kibot.yaml \
-d board/output/pcbs \
-b board/output/pcbs/sessile.kicad_pcb \
-s board/output/pcbs/sessile.kicad_sch \
--skip erc \
--targets ZIP_ASSEMBLY
- uses: actions/upload-artifact@v4
with:
name: pcb
path: board/output/pcbs/jlcpcb.zip
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
needs: KIBOT
steps:
- uses: actions/download-artifact@v4
with:
name: pcb
- name: Release
uses: softprops/action-gh-release@v2
with:
files: "jlcpcb.zip"