Generate fabrication files #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate fabrication files | |
on: | |
workflow_dispatch: | |
push: | |
jobs: | |
generate: | |
name: Generate fabrication files | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out code from GitHub | |
uses: actions/checkout@v4 | |
with: | |
path: control-board | |
- name: Install dependencies | |
run: | | |
sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases | |
sudo apt-get update | |
sudo apt-get install --no-install-recommends kicad python3 wget | |
sudo apt-get install gsettings-backend libcairo2 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk2.0-0 libdxflib3 | |
sudo pip3 install kikit | |
git clone https://github.com/openscopeproject/InteractiveHtmlBom.git | |
- name: Install gerbv | |
run: | | |
git clone https://github.com/gerbv/gerbv.github.io.git | |
cd gerbv.github.io/ci/ | |
tar xvzf gerbv*Ubuntu*.tar.gz | |
sudo cp gerbv /usr/local/bin | |
sudo cp libgerbv.so.1.0.* /usr/local/lib | |
sudo ldconfig | |
- name: Generate fabrication files | |
run: | | |
export PATH=`pwd`/InteractiveHtmlBom/InteractiveHtmlBom:$PATH | |
export INTERACTIVE_HTML_BOM_NO_DISPLAY=1 | |
cd control-board/zulu-ctrl-board-v1.0-kicad | |
./kikit_run.sh | |
- name: Upload JLCPCB gerbers | |
uses: actions/upload-artifact@v4 | |
with: | |
path: control-board/zulu-ctrl-board-v1.0-kicad/gerbers/jlcpcb.zip | |
name: Zulu Control Board gerbers for JLCPCB | |
- name: Upload OSHPARK gerbers | |
uses: actions/upload-artifact@v4 | |
with: | |
path: control-board/zulu-ctrl-board-v1.0-kicad/gerbers/oshpark.zip | |
name: Zulu Control Board gerbers for OSHPARK | |
- name: Upload PCBWAY gerbers | |
uses: actions/upload-artifact@v4 | |
with: | |
path: control-board/zulu-ctrl-board-v1.0-kicad/gerbers/pcbway.zip | |
name: Zulu Control Board gerbers for PCBWAY | |
- name: Upload images | |
uses: actions/upload-artifact@v4 | |
with: | |
path: control-board/zulu-ctrl-board-v1.0-kicad/zulu-ctrl-board-v1.0-kicad/images/* | |
name: Images of the PCB | |