Skip to content

Add panel file and updated github action #17

Add panel file and updated github action

Add panel file and updated github action #17

Workflow file for this run

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@1-add-penalization-to-build@v4
with:
repository: Cimos/kibot-config
path: ./kibot-config
ref: 1-add-penalization-to-build
# Build datapack
- uses: INTI-CMNB/[email protected]
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
# - name: Commit files
# if: ${{ hashFiles('assets/') != '' }}
# run: |
# git config ...
# Build panel
- uses: INTI-CMNB/[email protected]
with:
config: kibot-config/build.panel.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
# Don't think this is supported yet.
# - name: Upload Kibot Log File
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: kibot-logs
# path: logs
# if-no-files-found: error