Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Update Library

on:
# push:
# branches:
# - main
schedule: # run 25 mins after jlcpcb-parts-database
- cron: "00 6 * * *"
workflow_dispatch: # allow for manually trigger workflow

jobs:
update-library-from-database:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: 'pip' # caching pip dependencies
- run: pip install -r requirements.txt
- run: python libraryCreatorScript.py

# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v5

- name: Get current date
run: echo "CURRENT_DATE=$(date +'%Y.%m.%d')" >> $GITHUB_ENV

- uses: softprops/action-gh-release@v2
with:
name: ${{ env.CURRENT_DATE }}
tag_name: ${{ env.CURRENT_DATE }}
files: JLCPCB-KiCad-Library-${{ env.CURRENT_DATE }}.zip
44 changes: 44 additions & 0 deletions third_party/CDFER/JLCPCB-Kicad-Library/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# For PCBs designed using KiCad: https://www.kicad.org/
# Format documentation: https://kicad.org/help/file-formats/

# Temporary files
*.000
*.bak
*.bck
*.kicad_pcb-bak
*.kicad_sch-bak
*-backups
*.kicad_prl
*.sch-bak
*~
_autosave-*
*.tmp
*-save.pro
*-save.kicad_pcb
fp-info-cache

# Netlist files (exported from Eeschema)
*.net

# Autorouter files (exported from Pcbnew)
*.dsn
*.ses

# Exported BOM files
*.xml
*.csv

# Python virtual enviroment
.venv

# Kicad Project for Testing
JLCPCB-Kicad

__pycache__*

# Limit File size to 100MiB (Github Git File Size Limit)
find . -size +100M | cat >> .gitignore
__pycache__

# Library Zip bundles
*.zip
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"ms-toolsai.jupyter",
"ms-python.black-formatter",
"ms-python.python",
"donjayamanne.python-environment-manager"
]
}
156 changes: 156 additions & 0 deletions third_party/CDFER/JLCPCB-Kicad-Library/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"cSpell.words": [
"ACMP",
"ADUM",
"AGND",
"AIDCKR",
"AMCW",
"APWR",
"AREF",
"AVDD",
"BKIN",
"BREP",
"BWCU",
"CANH",
"CANL",
"CDBU",
"CDFER",
"CHRG",
"CLKOUT",
"COLOUR",
"COMIN",
"COMOUT",
"compresslevel",
"CTFP",
"DACOUT",
"Datasheet",
"descr",
"DFNWB",
"DPAK",
"EDIP",
"EEPROM",
"ENDSEC",
"ESDA",
"ESIP",
"ESOP",
"EXTI",
"Fanout",
"Fenghua",
"GNDA",
"GNDB",
"GOODWORK",
"hongjiacheng",
"HTSSOP",
"HVDA",
"ICSPCLK",
"ICSPDAT",
"IDBVR",
"INTA",
"INTB",
"ISENSE",
"JLCPCB",
"Kbit",
"Kbps",
"Kemet",
"kicad",
"LCSC",
"LEDNO",
"Lelon",
"Liown",
"LQFP",
"Mbit",
"Mbps",
"MCLR",
"Microcontroller",
"Microdiode",
"MILLI",
"MLCC",
"Mosfet",
"MOSFETs",
"MOSI",
"MSOP",
"Murata",
"MURF",
"NAND",
"NMOS",
"NNNC",
"NRNC",
"NSNC",
"NUNC",
"Optocouplers",
"OSCI",
"OSCIN",
"OSCO",
"OSCOUT",
"OUTA",
"OUTB",
"pcbnew",
"PCSN",
"PDIP",
"PDMFAT",
"PGND",
"PGOOD",
"Pico",
"PMOS",
"polyline",
"POWERFLAT",
"PSMCAQ",
"ROHS",
"roundrect",
"rratio",
"Schmitt",
"Schottky",
"SMAF",
"SMAJ",
"Smartcard",
"SMBF",
"SMBJ",
"SOIC",
"SPDT",
"SSOP",
"STDBY",
"STTH",
"SURSUGW",
"SURUGC",
"TDFN",
"TDSON",
"TIMX",
"TOVL",
"TQFP",
"TSOP",
"TSSOP",
"UFDB",
"UFDFN",
"USART",
"UVLO",
"VBAT",
"VBUS",
"VCCA",
"VCCB",
"VDDA",
"VDDB",
"VINB",
"VINC",
"VIND",
"Vishay",
"VOUT",
"VOUTA",
"VOUTB",
"VOUTC",
"VOUTD",
"VREF",
"Vrwm",
"VSENSE",
"VSSA",
"WORKASPACE",
"WQFN",
"WSON",
"XTAL",
"XTALIN",
"XTALOUT",
"YAGEO",
"YONGYUTAI",
"Yunxing",
"Zener"
]
}
Loading