-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.14 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
# SPDX-FileCopyrightText: 2022 nerdyscout <https://github.com/nerdyscout/>
#
# SPDX-License-Identifier: CC0-1.0
name: KiBot
on:
workflow_dispatch:
push:
paths:
- "kicad_project/*.kicad_sch"
- "kicad_project/*.kicad_pcb"
- "kicad_project/*.kicad_pro"
- "**/*kibot.yml"
env:
schema: "mbed-ce-ci-shield-v2.kicad_sch"
board: "mbed-ce-ci-shield-v2.kicad_pcb"
project_dir: kicad_project
out_dir: out
jobs:
compile-and-gen-design-files:
runs-on: ubuntu-latest
container:
image: ghcr.io/inti-cmnb/kicad7_auto:latest
steps:
- uses: actions/checkout@v3
- name: run kibot
run: |
cd ${{env.project_dir}}
mkdir ${{env.out_dir}}
kibot -c kibot.yml -e ${{env.schema}} -b ${{env.board}} -d ${{env.out_dir}} -v
- uses: actions/upload-artifact@v3
if: ${{success()}}
with:
name: ${{github.event.repository.name}}_design_files
if-no-files-found: error
path: |
${{env.project_dir}}/${{env.out_dir}}/**
!${{env.project_dir}}/${{env.out_dir}}/**/*.ogv
!${{env.project_dir}}/${{env.out_dir}}/**/*.log