Skip to content

Commit 1843033

Browse files
committed
fix: reorganize KiBot job steps and update runner to ubuntu-latest
1 parent 3452b9e commit 1843033

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/kibot.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,21 @@ jobs:
2323
KIBOT:
2424
runs-on: ubuntu-slim
2525
steps:
26-
- run: |
27-
sudo apt update
28-
sudo apt install -y kicad
2926
- uses: actions/checkout@v4
30-
- uses: astral-sh/setup-uv@v3
31-
- run: | # use https://nickcoutsos.github.io/keymap-layout-tools/ to generate info.json
27+
- uses: astral-sh/setup-uv@v3
28+
- name: Install KiCad and dependencies
29+
run: |
30+
sudo apt update
31+
sudo apt install -y kicad kicad-libraries python3-dev
32+
# Set up Python path for KiCad
33+
echo "PYTHONPATH=/usr/lib/python3/dist-packages:$PYTHONPATH" >> $GITHUB_ENV
34+
uv install kibot
35+
- name: Generate PCB files
36+
run: | # use https://nickcoutsos.github.io/keymap-layout-tools/ to generate info.json
3237
touch board/output/pcbs/sessile.kicad_sch
3338
echo '(kicad_sch (version 20230121))' > board/output/pcbs/sessile.kicad_sch
3439
35-
uvx kibot \
40+
uv run kibot \
3641
-c board/sessile.kibot.yaml \
3742
-d board/output/pcbs \
3843
-b board/output/pcbs/sessile.kicad_pcb \
@@ -44,7 +49,7 @@ jobs:
4449
path: board/output/pcbs/jlcpcb.zip
4550

4651
release:
47-
runs-on: ubuntu-slim
52+
runs-on: ubuntu-latest
4853
if: startsWith(github.ref, 'refs/tags/')
4954
permissions:
5055
contents: write

0 commit comments

Comments
 (0)