Skip to content

Conversation

linalinn
Copy link
Contributor

@linalinn linalinn commented Mar 24, 2024

Workflow for rendering PCB images with github actions

The workflow is defined in .github/workflows/images.yaml and an example is provides in the README.md of framework_input_controller (the images will show up after the first run of github actions is completed after the MR is merged)

.github/workflows/images.yaml

Contains an workflow with 2 jobs one for rendering the images using the ghcr.io/linalinn/kicad-render:nightly docker image and one for uploading the images to github pages.

The resulting images will be available under crimier.github.io/MyKiCad/<path_in_repo_to_kicad_pcb>_top.png or as crimier.github.io/MyKiCad/<path_in_repo_to_kicad_pcb>_bottom.png

e.g. rendering Laptop\ mods/framework_input_controller/framework_input_brkt.kicad_pcb results in Laptop\ mods/framework_input_controller/framework_input_brkt_top.png and Laptop\ mods/framework_input_controller/framework_input_brkt_bottom.png

currently 3D models form kicad-package3d are not rendered due to the official kicad image missing some configuration that happen when kicad is first started.

GitHub pages

Also it maybe need to configure github pages to use github actions for deployments see step 5

@CRImier CRImier merged commit aeab014 into CRImier:master Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants