Skip to content

Commit

Permalink
16S monitor "All in one" (#171)
Browse files Browse the repository at this point in the history
First release of the 16S monitoring board
  • Loading branch information
stuartpittaway authored Oct 14, 2023
1 parent c647f47 commit f272b36
Show file tree
Hide file tree
Showing 70 changed files with 138,539 additions and 74 deletions.
69 changes: 0 additions & 69 deletions .github/workflows/main.yml

This file was deleted.

100 changes: 100 additions & 0 deletions .github/workflows/pcb-artifacts-modulev490-allinone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: pcb-artifacts-modulev490-allinone

on:
push:
paths:
- 'ModuleV490-AllInOne/**.kicad_sch'
- 'ModuleV490-AllInOne/**.kicad_pcb'
- '.github/workflows/pcb-artifacts-modulev490-allinone.yaml'
pull_request:
paths:
- 'ModuleV490-AllInOne/**.kicad_sch'
- 'ModuleV490-AllInOne/**.kicad_pcb'
- '.github/workflows/pcb-artifacts-modulev490-allinone.yaml'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
generate-artifacts:
runs-on: ubuntu-latest
container: setsoft/kicad_auto:latest

steps:
- name: Update system repositories, Install Required Libraries and Initialize git-lfs
run: |
apt update
apt -y install git git-lfs zip librsvg2-bin imagemagick
git lfs install
- name: Checkout Repository
uses: actions/checkout@v3
with:
lfs: true

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6

- name: Running on branch
run: |
echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}"
- name: Date PCB
run: |
export DDDD=$(date)
echo "DDDD = ${DDDD}"
sed -i "s!<<date>>!${DDDD}!" ModuleV490-AllInOne/Module_16S.kicad_pcb
- name: Update the PCBs on default branch with git hash
if: steps.branch-name.outputs.is_default == 'true'
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s!<<hash>>!${COMMIT}!" ModuleV490-AllInOne/Module_16S.kicad_pcb
- name: Update the PCBs with the git hash and BETA.
if: steps.branch-name.outputs.is_default != 'true'
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s!<<hash>>!BETA-${COMMIT}!" ModuleV490-AllInOne/Module_16S.kicad_pcb
- name: Remove existing export folder
run: |
rm -rf ./Module_16S/export/
- name: Run KiBot
uses: INTI-CMNB/KiBot@v2_k7
with:
config: ./ModuleV490-AllInOne/config-4layer.kibot.yaml
dir: ./ModuleV490-AllInOne/export
schema: './ModuleV490-AllInOne/Module_16S.kicad_sch'
board: './ModuleV490-AllInOne/Module_16S.kicad_pcb'

# Splitting this out to ensure a failed kibot run will mark a check as failed.
- name: Prepare Gerbers artifact
run: |
cd ModuleV490-AllInOne/export/gerbers
zip -r -j ../module_16s_gerbers.zip *
- name: Remove gerber files/folder
run: |
rm -rf ./ModuleV490-AllInOne/export/gerbers
- name: upload artifacts
uses: actions/upload-artifact@v3
if: steps.branch-name.outputs.is_default != 'true'
with:
name: module_16s_gerbers
path: ModuleV490-AllInOne/export/module_16s_gerbers.zip

- name: Commit files
# if: steps.branch-name.outputs.is_default == 'true'
run: |
git add -f ModuleV490-AllInOne/export
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git status
git commit -m "CI: pcb-artifacts-ModuleV490-AllInOne"
git push -u origin
99 changes: 99 additions & 0 deletions .github/workflows/pcb-artifacts-modulev490-passivebal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: pcb-artifacts-modulev490-passivebal

on:
push:
paths:
- 'ModuleV490-PassiveBal/**.kicad_sch'
- 'ModuleV490-PassiveBal/**.kicad_pcb'
- '.github/workflows/pcb-artifacts-modulev490-passivebal.yaml'
pull_request:
paths:
- 'ModuleV490-PassiveBal/**.kicad_sch'
- 'ModuleV490-PassiveBal/**.kicad_pcb'
- '.github/workflows/pcb-artifacts-modulev490-passivebal.yaml'
workflow_dispatch:

jobs:
generate-artifacts:
runs-on: ubuntu-latest
container: setsoft/kicad_auto:latest

steps:
- name: Update system repositories, Install Required Libraries and Initialize git-lfs
run: |
apt update
apt -y install git git-lfs zip librsvg2-bin imagemagick
git lfs install
- name: Checkout Repository
uses: actions/checkout@v3
with:
lfs: true

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6

- name: Running on branch
run: |
echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}"
- name: Date PCB
run: |
export DDDD=$(date)
echo "DDDD = ${DDDD}"
sed -i "s!<<date>>!${DDDD}!" ModuleV490-PassiveBal/Module_16S_PassiveBalanceAddOn.kicad_pcb
- name: Update the PCBs with on default branch with git hash
if: steps.branch-name.outputs.is_default == 'true'
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s!<<hash>>!${COMMIT}!" ModuleV490-PassiveBal/Module_16S_PassiveBalanceAddOn.kicad_pcb
- name: Update the PCBs with the git hash and BETA.
if: steps.branch-name.outputs.is_default != 'true'
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s!<<hash>>!BETA-${COMMIT}!" ModuleV490-PassiveBal/Module_16S_PassiveBalanceAddOn.kicad_pcb
- name: Remove existing export folder
run: |
rm -rf ./ModuleV490-PassiveBal/export/
- name: Run KiBot
uses: INTI-CMNB/KiBot@v2_k7
with:
config: ./ModuleV490-PassiveBal/config-2layer.kibot.yaml
dir: ./ModuleV490-PassiveBal/export
schema: './ModuleV490-PassiveBal/Module_16S_PassiveBalanceAddOn.kicad_sch'
board: './ModuleV490-PassiveBal/Module_16S_PassiveBalanceAddOn.kicad_pcb'

# Splitting this out to ensure a failed kibot run will mark a check as failed.
- name: Prepare Gerbers artifact
run: |
cd ModuleV490-PassiveBal/export/gerbers
zip -r -j ../module_16s_passive_gerbers.zip *
- name: Remove gerber folder
run: |
rm -rf ./ModuleV490-PassiveBal/export/gerbers
- name: upload artifacts
uses: actions/upload-artifact@v3
if: steps.branch-name.outputs.is_default != 'true'
with:
name: module_16s_passive_gerbers
path: |
ModuleV490-PassiveBal/export/module_16s_passive_gerbers.zip
- name: Commit files
# if: steps.branch-name.outputs.is_default == 'true'
run: |
git add -f ModuleV490-PassiveBal/export
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git status
git commit -m "CI: pcb-artifacts-Module_16S_Passive"
git push -u origin
101 changes: 101 additions & 0 deletions .github/workflows/pcb-artifacts-temperaturepcb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: pcb-artifacts-temperaturepcb

on:
push:
paths:
- "TemperaturePCB/**.kicad_sch"
- "TemperaturePCB/**.kicad_pcb"
- ".github/workflows/pcb-artifacts-temperaturepcb.yaml"
pull_request:
paths:
- "TemperaturePCB/**.kicad_sch"
- "TemperaturePCB/**.kicad_pcb"
- ".github/workflows/pcb-artifacts-temperaturepcb.yaml"
workflow_dispatch:

jobs:
generate-artifacts:
runs-on: ubuntu-latest
container: setsoft/kicad_auto:latest

steps:
- name: Update system repositories, Install Required Libraries and Initialize git-lfs
run: |
apt update
apt -y install git git-lfs zip librsvg2-bin imagemagick
git lfs install
- name: Checkout Repository
uses: actions/checkout@v3
with:
lfs: true

- name: Get branch name
id: branch-name
uses: tj-actions/branch-names@v6

- name: Running on branch
run: |
echo "Running on branch: ${{ steps.branch-name.outputs.current_branch }}"
- name: Date PCB
run: |
export DDDD=$(date)
echo "DDDD = ${DDDD}"
sed -i "s!<<date>>!${DDDD}!" TemperaturePCB/TemperaturePCB.kicad_pcb
- name: Update the PCBs with on default branch with git hash
if: steps.branch-name.outputs.is_default == 'true'
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s!<<hash>>!${COMMIT}!" TemperaturePCB/TemperaturePCB.kicad_pcb
- name: Update the PCBs with the git hash and BETA.
if: steps.branch-name.outputs.is_default != 'true'
run: |
export COMMIT=$(git rev-parse --short HEAD)
echo "COMMIT = ${COMMIT}"
sed -i "s!<<hash>>!BETA-${COMMIT}!" TemperaturePCB/TemperaturePCB.kicad_pcb
- name: Remove existing export folder
run: |
rm -rf ./TemperaturePCB/export/
- name: Run KiBot
uses: INTI-CMNB/KiBot@v2_k7
with:
config: ./TemperaturePCB/config-2layer.kibot.yaml
dir: ./TemperaturePCB/export
schema: "./TemperaturePCB/TemperaturePCB.kicad_sch"
board: "./TemperaturePCB/TemperaturePCB.kicad_pcb"

# Splitting this out to ensure a failed kibot run will mark a check as failed.
- name: Prepare Gerbers artifact
run: |
cd TemperaturePCB/export/gerbers
zip -r -j ../TemperaturePCB_gerbers.zip *
- name: Remove gerber folder
run: |
rm -rf ./TemperaturePCB/export/gerbers
- name: upload artifacts
uses: actions/upload-artifact@v3
if: steps.branch-name.outputs.is_default != 'true'
with:
name: TemperaturePCB_gerbers
path: |
TemperaturePCB/export/TemperaturePCB_gerbers.zip
TemperaturePCB/export/TemperaturePCB_bom_jlc.csv
TemperaturePCB/export/TemperaturePCB_cpl_jlc.csv
- name: Commit files
# if: steps.branch-name.outputs.is_default == 'true'
run: |
git add -f TemperaturePCB/export
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git status
git commit -m "CI: pcb-artifacts-temperaturepcb"
git push -u origin
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,15 @@ dkms.conf
.kicad_pcb-bak
*.kicad_pcb-bak
*.bak
ESPControllerCircuit/fp-info-cache
fp-info-cache

**/.vscode
*.sch-bak
*.bck
ControllerCircuit/ControllerCircuit-cache.lib
ControllerCircuit/fp-info-cache
ModuleV400/v4-cache.lib
ModuleV400/v4-rescue.lib
ModuleV421/ModuleV421-cache.lib
ModuleV421/ModuleV421-rescue.lib
ModuleV440/fp-info-cache
ControllerCircuit/_autosave-ControllerCircuit.kicad_pcb
ControllerCircuit/fp-info-cache
ControllerCircuit/sym-lib-table
*.zip
Loading

0 comments on commit f272b36

Please sign in to comment.