Skip to content

Commit

Permalink
fix: remove mosfet (#30)
Browse files Browse the repository at this point in the history
* fix: remove unused mosfet

feat: add usb header
chore: remove unneeded vbus-5v jumper

* chore: add kiri diff action
  • Loading branch information
mikesmitty committed Jul 7, 2024
1 parent 7dd7774 commit f38021d
Show file tree
Hide file tree
Showing 6 changed files with 5,186 additions and 8,484 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/kiri-delete.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: KiCad Diff Delete

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

on:
pull_request:
types:
- closed

jobs:
kiri-delete:
runs-on: ubuntu-latest
steps:
- name: Kiri
uses: usa-reddragon/kiri-github-action@v1
61 changes: 61 additions & 0 deletions .github/workflows/kiri-diff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
pull_request:
types:
- opened
- synchronize

name: Kiri Diff

jobs:
get-changed-files:
name: Get changed files
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Get changed PCB files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
**/*.kicad_pcb
**/*.kicad_sch
dir_names: true
matrix: true
outputs:
any-changed: ${{ steps.changed-files.outputs.any_changed }}
matrix: ${{ steps.changed-files.outputs.all_changed_files }}

kiri-diff:
if: ${{ fromJson(needs.get-changed-files.outputs.any-changed) }}
needs: get-changed-files

strategy:
matrix:
file: ${{ fromJSON(needs.get-changed-files.outputs.matrix) }}
fail-fast: false

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Get KiCad Project File
id: kicad-project-file
run: |
PROJECT_NAME="$(basename "${{ matrix.file }}")"
PROJECT_FILE="${{ matrix.file }}/${PROJECT_NAME}.kicad_pro"
echo "project-file=$PROJECT_FILE" >> "$GITHUB_OUTPUT"
- name: Kiri
uses: usa-reddragon/kiri-github-action@v1
with:
project-file: ${{ steps.kicad-project-file.outputs.project-file }}
Loading

0 comments on commit f38021d

Please sign in to comment.