Skip to content

Commit f44faa0

Browse files
committed
test
1 parent 9509be2 commit f44faa0

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

.github/workflows/kibot.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
name: kibot
22

33
on:
4-
pull_request:
5-
push:
6-
branches:
7-
- BOOST
8-
- BUS
9-
- CONN
10-
- LOG
11-
- LORA
12-
- POS
4+
- pull_request
5+
- push
136
# paths:
147
# - '**.kicad_sch'
158
# - '**.kicad_pcb'
@@ -18,24 +11,17 @@ jobs:
1811
kibot:
1912
runs-on: ubuntu-latest
2013
container: ghcr.io/inti-cmnb/kicad8_auto:latest
14+
strategy:
15+
matrix:
16+
pcb: [BOOST, BUS, CONN, LOG, LORA, POS]
2117

2218
steps:
2319
- name: Checkout repo
2420
uses: actions/checkout@v4
2521

26-
# # extract branch name
27-
- name: Extract branch name
28-
run: |
29-
echo "BRANCH_NAME=$(git name-rev --name-only HEAD)" >> $GITHUB_ENV
30-
echo $BRANCH_NAME
31-
3222
# Start of the KiBot steps
3323
- name: Run KiBot
34-
run: kibot -d $BRANCH_NAME -c $BRANCH_NAME/variant.kibot.yml -e "$BRANCH_NAME/pcb/$BRANCH_NAME.kicad_sch" -b "$BRANCH_NAME/pcb/$BRANCH_NAME.kicad_pcb"
24+
run: kibot -d ${{ matrix.pcb }} -c ${{ matrix.pcb }}/variant.kibot.yml -e "${{ matrix.pcb }}/pcb/${{ matrix.pcb }}.kicad_sch" -b "${{ matrix.pcb }}/pcb/${{ matrix.pcb }}.kicad_pcb"
3525

36-
# Upload the artifacts
37-
- name: upload artifacts
38-
uses: actions/upload-artifact@v4
39-
with:
40-
name: ProMicro_${{ env.BRANCH_NAME }}
41-
path: ${{ env.BRANCH_NAME }}
26+
# git add, commit and push
27+
- uses: actions4git/add-commit-push@v1

0 commit comments

Comments
 (0)