-
-
Notifications
You must be signed in to change notification settings - Fork 20
82 lines (78 loc) · 2.25 KB
/
kibot.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
# SPDX-FileCopyrightText: 2022 nerdyscout <https://github.com/nerdyscout/>
#
# SPDX-License-Identifier: CC0-1.0
name: KiBot
on:
push:
paths:
- "Kicad/*.kicad_sch"
- "Kicad/*.kicad_pcb"
- "Kicad/*.kicad_pro"
- "**/*kibot.yml"
pull_request:
paths:
- "Kicad/*.kicad_sch"
- "Kicad/*.kicad_pcb"
- "Kicad/*.kicad_pro"
- "**/*kibot.yml"
env:
schema: "Kicad/neotron-pico.kicad_sch"
board: "Kicad/neotron-pico.kicad_pcb"
dir: "Kicad/docs"
jobs:
DRC:
runs-on: ubuntu-latest
container:
image: setsoft/kicad_auto:ki7
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Run KiBot for DRC
run: |
kibot -c Kicad/docs.kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_erc -v -i
ERC:
runs-on: ubuntu-latest
container:
image: setsoft/kicad_auto:ki7
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Run KiBot for ERC
run: |
kibot -c Kicad/docs.kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_drc -v -i
build:
runs-on: ubuntu-latest
needs: [ERC, DRC]
container:
image: setsoft/kicad_auto:ki7
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Get Branch Name
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
id: branch_name
run: |
echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/}
- name: Run KiBot
run: |
kibot -c Kicad/docs.kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.dir}} -s run_erc,run_drc -v
- name: Upload KiBot Output
uses: actions/upload-artifact@v3
if: ${{success()}}
with:
name: Build-Outputs
if-no-files-found: error
path: |
${{env.dir}}/**
!${{env.dir}}/**/*.ogv
!${{env.dir}}/**/*.log
!${{env.dir}}/**/*.ini
- name: Create and Upload Release
if: github.event_name == 'push' && startswith(github.ref, 'refs/tags/')
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: ${{env.dir}}/neotron-pico-*