Skip to content

Commit

Permalink
add image rendering for pcb
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopfi committed Nov 7, 2024
1 parent 1f929ad commit e957ef5
Show file tree
Hide file tree
Showing 4 changed files with 4,718 additions and 12 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/pcb_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: pcb_image
on:
push:
jobs:
render-image:
name: render-image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v4

- name: render pcb image
uses: linalinn/kicad-render@main
with:
pcb_file: 8bit-adder.kicad_pcb
output_path: ${{ github.workspace }}/images

- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v3

- name: Upload Artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: "images"

deploy-pages:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: render-image

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
12 changes: 0 additions & 12 deletions 8bit-adder.kicad_pcb
Original file line number Diff line number Diff line change
Expand Up @@ -103839,18 +103839,6 @@
(layer "Edge.Cuts")
(uuid "ea87bda4-600f-4c52-aa05-7fa6f4647518")
)
(gr_text "JLCJLCJLCJLC"
(at -61.42 158.93 0)
(layer "B.SilkS")
(uuid "392f7cda-ee75-4502-a89c-de8df9f659a4")
(effects
(font
(size 1 1)
(thickness 0.1)
)
(justify left bottom mirror)
)
)
(gr_text "B 1"
(at -328.835714 138.81 0)
(layer "F.SilkS" knockout)
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# 8bit-adder

A DIY 8 Bit Adder from single transistors

### Images

![top](lopfi.github.io/8bit-adder/top.png)
Loading

0 comments on commit e957ef5

Please sign in to comment.