Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
update schematic
  • Loading branch information
Cimos committed Aug 7, 2024
1 parent 913c97f commit e53823a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 146 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: build

on:
push:
paths:
Expand All @@ -9,20 +8,34 @@ on:
paths:
- '**.kicad_sch'
- '**.kicad_pcb'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Use current kicad repo
- uses: actions/checkout@master

# 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@master
with:
repository: Cimos/kibot-config
path: ./kibot-config


# Use kibot build.
- uses: INTI-CMNB/KiBot@v1.7.0
with:
# Required - kibot config file
config: config.kibot.yaml
config: kibot-config/build.kibot.yaml
dir: output
schema: 'Mad_RP2040.kicad_sch'
board: 'Mad_RP2040.kicad_pcb'
- name: upload results
schema: '${{ env.PROJECT_NAME }}.kicad_sch'
board: '${{ env.PROJECT_NAME }}.kicad_pcb'

# Update artifacts
- name: Upload Results
uses: actions/upload-artifact@v2
with:
name: output
Expand Down
4 changes: 3 additions & 1 deletion Mad_RP2040.kicad_pro
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,9 @@
"Net-(U1-D+_in)": "USB",
"Net-(U1-D-_in)": "USB",
"Net-(U5-D+)": "USB",
"Net-(U5-D-)": "USB"
"Net-(U5-D-)": "USB",
"unconnected-(U1-D+_out-Pad6)": "USB",
"unconnected-(U1-D-_out-Pad5)": "USB"
},
"netclass_patterns": []
},
Expand Down
8 changes: 4 additions & 4 deletions Mad_RP2040.kicad_sch
Original file line number Diff line number Diff line change
Expand Up @@ -3995,7 +3995,7 @@
(netclass_flag ""
(length 2.54)
(shape round)
(at 93.98 67.945 0)
(at 94.615 67.945 0)
(fields_autoplaced yes)
(effects
(font
Expand All @@ -4005,7 +4005,7 @@
)
(uuid "012db034-6035-432b-a7bd-93ff5e9e8834")
(property "Netclass" "USB"
(at 94.6785 65.405 0)
(at 95.3135 65.405 0)
(effects
(font
(size 1.27 1.27)
Expand Down Expand Up @@ -4041,7 +4041,7 @@
(netclass_flag ""
(length 2.54)
(shape round)
(at 93.98 70.485 180)
(at 94.615 70.485 180)
(fields_autoplaced yes)
(effects
(font
Expand All @@ -4051,7 +4051,7 @@
)
(uuid "24c67776-e61d-4eee-ae06-01298139550f")
(property "Netclass" "USB"
(at 94.6785 73.025 0)
(at 95.3135 73.025 0)
(effects
(font
(size 1.27 1.27)
Expand Down
133 changes: 0 additions & 133 deletions config.kibot.yaml

This file was deleted.

0 comments on commit e53823a

Please sign in to comment.