Skip to content

Commit

Permalink
Add panel file and updated github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Cimos committed Aug 16, 2024
1 parent a3b8c22 commit 889fd5e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ jobs:
# 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
uses: actions/checkout@1-add-penalization-to-build@v4
with:
repository: Cimos/kibot-config
path: ./kibot-config

ref: 1-add-penalization-to-build

# Use kibot build.
# Build datapack
- uses: INTI-CMNB/[email protected]
with:
config: kibot-config/build.kibot.yaml
Expand All @@ -29,18 +30,34 @@ jobs:
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: logs
# name: kibot-logs
# path: logs
# if-no-files-found: error
13 changes: 13 additions & 0 deletions panelization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kibot:
version: 1

outputs:
- name: simple_panel # Keep this name the same
type: panelize
dir: Panel
options:
configs:
- name: base # Keep this name the same
layout:
rows: 1
cols: 1

0 comments on commit 889fd5e

Please sign in to comment.