-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: remove unused mosfet feat: add usb header chore: remove unneeded vbus-5v jumper * chore: add kiri diff action
- Loading branch information
1 parent
7dd7774
commit f38021d
Showing
6 changed files
with
5,186 additions
and
8,484 deletions.
There are no files selected for viewing
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
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 |
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
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 }} |
Oops, something went wrong.