seveibar/nrf52810

This code defines a PCB layout with key components including a 32.768kHz crystal oscillator, a microcontroller (nRF52810), LEDs, RF antenna, and supporting decoupling capacitors arranged on a multi-layer board.

Version
0.1.3
License
unset
Stars
0

.github/workflows/tscircuit-snapshot.yml

name: tscircuit Snapshot

on:
  push:
    branches: [main]
  pull_request:

permissions:
  contents: read

jobs:
  snapshot:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7

      - uses: actions/setup-node@v7
        with:
          node-version: 22

      - name: Setup Bun
        uses: oven-sh/setup-bun@v2
        with:
          bun-version: 1.3.1

      - name: Install dependencies
        run: bun install --frozen-lockfile

      - name: Render current board snapshots
        run: bunx tsci snapshot --update

      - name: Upload PCB and schematic sheet snapshots
        id: snapshot_artifact
        uses: actions/upload-artifact@v7
        with:
          name: tscircuit-snapshots
          path: |
            __snapshots__/*-pcb.snap.svg
            __snapshots__/*-schematic.snap.svg
            __snapshots__/*.diff.svg
          if-no-files-found: error
          retention-days: 30

      - name: Add snapshot link to job summary
        run: |
          echo '## tscircuit board snapshots' >> "$GITHUB_STEP_SUMMARY"
          echo '' >> "$GITHUB_STEP_SUMMARY"
          echo 'The artifact contains the current PCB and all schematic sheets.' >> "$GITHUB_STEP_SUMMARY"
          echo '' >> "$GITHUB_STEP_SUMMARY"
          echo '[Download tscircuit-snapshots](${{ steps.snapshot_artifact.outputs.artifact-url }})' >> "$GITHUB_STEP_SUMMARY"