-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.21 KB
/
main.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
name: Generate Datapack
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Use current kicad repo commit that triggered this build.
- uses: actions/checkout@v4
with:
submodules: recursive
# Run bash command to get kicad file name.
- name: Get Kicad Project Name
run: echo "PROJECT_NAME=$(basename *.kicad_pro .kicad_pro)" >> $GITHUB_ENV
# Checkout kibot config repo
- name: Get Kibot Config
uses: actions/checkout@main
with:
repository: Cimos/kibot-config
path: ./kibot-config
# Use kibot build.
- uses: INTI-CMNB/KiBot@v1.7.0
with:
config: kibot-config/build.kibot.yaml
dir: output
schema: '${{ env.PROJECT_NAME }}.kicad_sch'
board: '${{ env.PROJECT_NAME }}.kicad_pcb'
# log: log/log.log
# verbose: 2
# Update artifacts
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: ${{ env.PROJECT_NAME }}-datapack
path: output
# - name: Upload Kibot Log File
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: logs
# path: logs
# if-no-files-found: error