Skip to content

Commit be6e344

Browse files
committed
fix: remove Docker caching steps and update KiBot setup in workflow configuration
1 parent 0b587d3 commit be6e344

1 file changed

Lines changed: 22 additions & 47 deletions

File tree

.github/workflows/kibot.yml

Lines changed: 22 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -24,53 +24,28 @@ jobs:
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
27-
28-
- name: Set up Docker Buildx
29-
uses: docker/setup-buildx-action@v3
30-
31-
- name: Cache Docker layers
32-
uses: actions/cache@v4
33-
with:
34-
path: /tmp/.buildx-cache
35-
key: ${{ runner.os }}-kibot-${{ github.sha }}
36-
restore-keys: |
37-
${{ runner.os }}-kibot-
38-
39-
- name: Cache KiBot Docker image
40-
id: cache-kibot
41-
uses: actions/cache@v4
42-
with:
43-
path: /tmp/kibot-image.tar
44-
key: kibot-v2_dk9-${{ hashFiles('.github/workflows/kibot.yml') }}
45-
46-
- name: Load cached Docker image
47-
if: steps.cache-kibot.outputs.cache-hit == 'true'
48-
run: |
49-
docker load -i /tmp/kibot-image.tar || true
50-
51-
- name: Pre-pull and save KiBot image
52-
if: steps.cache-kibot.outputs.cache-hit != 'true'
53-
run: |
54-
docker pull ghcr.io/inti-cmnb/kibot:v2_dk9
55-
docker save ghcr.io/inti-cmnb/kibot:v2_dk9 -o /tmp/kibot-image.tar
56-
57-
- name: Create dummy schematic if needed
58-
run: |
59-
if [ ! -f "board/output/pcbs/sessile.kicad_sch" ]; then
60-
touch board/output/pcbs/sessile.kicad_sch
61-
echo '(kicad_sch (version 20230121))' > board/output/pcbs/sessile.kicad_sch
62-
fi
63-
64-
- uses: INTI-CMNB/KiBot@v2_dk9
65-
with:
66-
config: board/sessile.kibot.yaml
67-
dir: board/output/pcbs
68-
# variant: board
69-
board: board/output/pcbs/sessile.kicad_pcb
70-
schema: board/output/pcbs/sessile.kicad_sch
71-
skip: erc
72-
targets: ZIP_ASSEMBLY
73-
27+
- uses: astral-sh/setup-uv@v3
28+
# with:
29+
# config: board/sessile.kibot.yaml
30+
# dir: board/output/pcbs
31+
# # variant: board
32+
# board: board/output/pcbs/sessile.kicad_pcb
33+
# schema: board/output/pcbs/sessile.kicad_sch
34+
# skip: erc
35+
# targets: ZIP_ASSEMBLY
36+
- run: | # use https://nickcoutsos.github.io/keymap-layout-tools/ to generate info.json
37+
wget https://set-soft.github.io/debian/kibot.sources
38+
sudo cp kibot.sources /etc/apt/sources.list.d/
39+
sudo apt update
40+
sudo apt install -y kibot
41+
42+
kibot \
43+
-c board/sessile.kibot.yaml \
44+
-d board/output/pcbs \
45+
-b board/output/pcbs/sessile.kicad_pcb \
46+
-s board/output/pcbs/sessile.kicad_sch \
47+
--skip erc \
48+
--targets ZIP_ASSEMBLY
7449
- uses: actions/upload-artifact@v4
7550
with:
7651
name: pcb

0 commit comments

Comments
 (0)