-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (45 loc) · 1.33 KB
/
datapack.yaml
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
name: Generate Datapack
on:
push:
branches:
- '**'
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
steps:
- name: Checkout (only last commit)
uses: actions/checkout@v4
with:
submodules: recursive
- name: Get KiCad project name
run: echo "PROJECT_NAME=$(basename *.kicad_pro .kicad_pro)" >> $GITHUB_ENV
- name: Clone and Checkout our KiBot config
uses: actions/checkout@v4
with:
repository: Cimos/kibot-config
path: ./kibot-config
ref: main
- name: Build Datapack
uses: Cimos/kibot-config@1-add-penalization-to-build
with:
config: kibot-config/build.kibot.yaml
dir: output
schema: '${{ env.PROJECT_NAME }}.kicad_sch'
board: '${{ env.PROJECT_NAME }}.kicad_pcb'
logfile: 'logfile/logfile.log'
# verbose: 2
- name: Upload logfile
if: always()
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}-logfile
path: logfile
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}-datapack
path: output