Skip to content

Commit

Permalink
Merge pull request #11 from rfvermut/feat/gh-actions
Browse files Browse the repository at this point in the history
Remove xESC2040 code + GH actions
  • Loading branch information
ClemensElflein authored Jul 20, 2022
2 parents a7a4e7f + fa6c57b commit 33d5363
Show file tree
Hide file tree
Showing 97 changed files with 173 additions and 439,697 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/kibot-commit-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on: [push]

jobs:
erc-drc-checks:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: INTI-CMNB/KiBot@v2_k6
with:
config: PCB/xESC2.kibot.yaml
board: PCB/xESC2.kicad_pcb
verbose: 1
48 changes: 48 additions & 0 deletions .github/workflows/kibot-release-from-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: tagged-release

on:
push:
tags:
- "v*"

jobs:
tagged-release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: INTI-CMNB/KiBot@v2_k6
with:
config: PCB/xESC2.kibot.yaml
board: PCB/xESC2.kicad_pcb
skip: run_drc,run_erc

- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: release/*

- name: Deploy release
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release
destination_dir: release

- name: Deploy release_navigator
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release_navigator
destination_dir: release_navigator
keep_files: true

- name: Deploy release_navigator index
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: release_navigator
keep_files: true
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion PCB/xESC2040/bom.ini → PCB/bom.ini
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ board_variant = ['default']
; Whether to hide headers from output file
hide_headers = False
; Whether to hide PCB info from output file
hide_pcb_info = False
hide_pcb_info = True
; Interpret as a Digikey P/N and link the following field
digikey_link = False

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
104 changes: 104 additions & 0 deletions PCB/xESC2.kibot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
kibot:
version: 1

preflight:
run_erc: true
run_drc: true
set_text_variables:
- name: 'git_version'
command: 'git describe --tags'
update_xml: true

filters:
- name: anything_in_Config
type: 'generic'
comment: 'Remove components with something in config'
keys: ["do not place", "DNP", '+can']
exclude_config: true
exclude_value: true

outputs:
- name: 'bom'
comment: 'Used to generate the BoM in CSV, HTML, TSV, TXT, XML or XLSX format using the internal BoM.'
type: 'kibom' # reads bom.ini in contrast with 'bom'
dir: 'release'
options:
format: CSV

- name: 'write_gerber_drill'
comment: 'This is the information for the drilling machine in gerber format.'
type: 'gerb_drill'
dir: 'release/gerber'

- name: 'write_gerber'
comment: 'This is the main fabrication format for the PCB.'
type: 'gerber'
dir: 'release/gerber'
layers: 'selected'

- name: 'gerber'
comment: 'Generates a compressed file containing gerber files.'
type: 'compress'
dir: 'release'
options:
files:
# [string=''] Destination directory inside the archive, empty means the same of the file
- dest: '.'
source: 'release/gerber/*'

- name: 'position'
comment: 'Generates the file with position information for the PCB components, used by the pick and place machine.'
type: 'position'
dir: 'release'
options:
dnf_filter: anything_in_Config

- name: 'ibom'
comment: 'Generates an interactive web page useful to identify the position of the components in the PCB.'
type: 'ibom'
dir: 'release'
options:
dnf_filter: anything_in_Config
extra_fields: Stock_PN
highlight_pin1: true

- name: 'pcbdraw_svg'
comment: 'Exports the PCB as a 2D model (SVG, PNG or JPG).'
type: 'pcbdraw'
dir: 'release'
options:
format: 'svg'
dnf_filter: anything_in_Config

- name: 'pcbdraw_png'
comment: 'Exports the PCB as a 2D model (SVG, PNG or JPG).'
type: 'pcbdraw'
dir: 'release'
options:
format: 'png'
dnf_filter: anything_in_Config

- name: 'pcbdraw_svg_bottom'
comment: 'Exports the PCB as a 2D model (SVG, PNG or JPG).'
type: 'pcbdraw'
dir: 'release'
options:
bottom: true
format: 'svg'
dnf_filter: anything_in_Config

- name: 'pcbdraw_png_bottom'
comment: 'Exports the PCB as a 2D model (SVG, PNG or JPG).'
type: 'pcbdraw'
dir: 'release'
options:
bottom: true
format: 'png'
dnf_filter: anything_in_Config

- name: 'navigate_results'
comment: 'Generates a web page to navigate the generated outputs'
type: 'navigate_results'
dir: 'release_navigator'
options:
link_from_root: "release_navigator/index.html"
File renamed without changes.
4 changes: 3 additions & 1 deletion PCB/xESC2_mini_VESC/xESC2.kicad_pro → PCB/xESC2.kicad_pro
Original file line number Diff line number Diff line change
Expand Up @@ -448,5 +448,7 @@
"sheet61A580CB"
]
],
"text_variables": {}
"text_variables": {
"git_version": "WIP"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 33d5363

Please sign in to comment.