Update render-pcbdraw.yml
This commit is contained in:
1 parent
a83f53d3d8
commit
6d04cfb8b3
1 file changed
+12
-6
@@ -15,24 +15,30 @@ jobs:
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install KiCad 8.0.6 and Dependencies
|
||||
env:
|
||||
DISPLAY: :99 # Set DISPLAY for Xvfb
|
||||
run: |
|
||||
# Add KiCad 8 PPA and install KiCad
|
||||
# Install Xvfb for virtual display
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xvfb
|
||||
|
||||
# Start Xvfb
|
||||
Xvfb :99 -screen 0 1024x768x16 &
|
||||
|
||||
# Add KiCad PPA and install KiCad
|
||||
sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y kicad=8.0.6-0* kicad-footprints kicad-packages3d kicad-symbols python3-wxgtk4.0 python3-pip
|
||||
|
||||
# Verify KiCad version
|
||||
kicad_version=$(kicad --version)
|
||||
echo "KiCad version installed: $kicad_version"
|
||||
|
||||
# Install pcbdraw
|
||||
pip install pcbdraw
|
||||
|
||||
- name: Render PCB Image
|
||||
env:
|
||||
# Set PYTHONPATH to locate pcbnew bindings
|
||||
PYTHONPATH: /usr/lib/kicad/lib/python3/dist-packages
|
||||
DISPLAY: :99 # Use the same Xvfb display
|
||||
run: |
|
||||
Xvfb :99 -screen 0 1024x768x16 & # Ensure Xvfb is running
|
||||
mkdir -p docs/images
|
||||
pcbdraw render KiCad/RP2040-Decoder.kicad_pcb docs/images/pcb_render.png
|
||||
|
||||
|
||||
Reference in new issue
Block a user