Skip to content

Commit

Permalink
update assets, save in KiCADv8
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-dvorak committed Nov 7, 2024
1 parent dc498c0 commit 0e02475
Show file tree
Hide file tree
Showing 7 changed files with 5,832 additions and 2,868 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/kicad_outputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '**.yml'
- 'doc/assets'
workflow_dispatch:

env:
schema: "hw/sch_pcb/${{ github.event.repository.name }}.kicad_sch"
board: "hw/sch_pcb/${{ github.event.repository.name }}.kicad_pcb"
Expand All @@ -32,15 +32,15 @@ jobs:
submodules: recursive
token: ${{ secrets.pat }}
ref: ${{ github.head_ref }}
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/erc.kibot.yaml
schema: ${{ env.schema }}
board: ${{ env.board }}
dir: ${{ env.dir }}


DRC:
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -50,15 +50,15 @@ jobs:
submodules: recursive
token: ${{ secrets.pat }}
ref: ${{ github.head_ref }}
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/drc.kibot.yaml
schema: ${{ env.schema }}
board: ${{ env.board }}
dir: ${{ env.dir }}


schematics:
runs-on: ubuntu-latest
continue-on-error: true
Expand All @@ -68,8 +68,8 @@ jobs:
submodules: recursive
token: ${{ secrets.pat }}
ref: ${{ github.head_ref }}
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/schematics.kibot.yaml
schema: ${{ env.schema }}
Expand All @@ -81,7 +81,7 @@ jobs:
with:
name: doc_sch
path: ${{ env.dir }}_docs/**

placement:
name: "Placement and XML"
runs-on: ubuntu-latest
Expand All @@ -92,21 +92,21 @@ jobs:
submodules: recursive
token: ${{ secrets.pat }}
ref: ${{ github.head_ref }}
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/placement.kibot.yaml
schema: ${{ env.schema }}
board: ${{ env.board }}
dir: ${{ env.dir }}_docs
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/xml.kibot.yaml
schema: ${{ env.schema }}
board: ${{ env.board }}
dir: ${{ env.dir }}_docs

# - name: "Rename output"
# run: |
# for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done
Expand All @@ -118,7 +118,7 @@ jobs:
mkdir doc_xml || true ;
mv hw/sch_pcb/*.xml doc_xml/ || true;
mv hw/out_docs/*.csv doc_xml/ || true;
- uses: actions/upload-artifact@v3
if: ${{ success() }}
with:
Expand All @@ -145,14 +145,14 @@ jobs:
submodules: recursive
token: ${{ secrets.pat }}
ref: ${{ github.head_ref }}
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/report.kibot.yaml
schema: ${{ env.schema }}
board: ${{ env.board }}
dir: ${{ env.dir }}_report

- uses: actions/upload-artifact@v3
if: ${{ success() }}
with:
Expand All @@ -169,17 +169,17 @@ jobs:
submodules: recursive
token: ${{ secrets.pat }}
ref: ${{ github.head_ref }}
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/ibom.kibot.yaml
schema: ${{ env.schema }}
board: ${{ env.board }}
dir: ${{ env.dir }}_ibom

- name: "Rename output"
run: for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done

- uses: actions/upload-artifact@v3
if: ${{ success() }}
with:
Expand All @@ -198,8 +198,8 @@ jobs:
submodules: recursive
token: ${{ secrets.pat }}
ref: ${{ github.head_ref }}
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/gerbers.kibot.yaml
schema: ${{ env.schema }}
Expand All @@ -209,7 +209,7 @@ jobs:

- name: "Rename output"
run: for file in $(find ${{env.dir}}_gerbers -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" || true ; done

- uses: actions/upload-artifact@v2
if: ${{ success() }}
with:
Expand All @@ -227,15 +227,15 @@ jobs:
submodules: recursive
token: ${{ secrets.pat }}
ref: ${{ github.head_ref }}
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/cad.kibot.yaml
schema: ${{ env.schema }}
board: ${{ env.board }}
dir: ${{ env.dir }}_cad
- uses: INTI-CMNB/KiBot@v2_dk7

- uses: INTI-CMNB/KiBot@v2_dk8
with:
config: ${{ env.kibot }}/render.kibot.yaml
schema: ${{ env.schema }}
Expand All @@ -248,7 +248,7 @@ jobs:
with:
name: doc_cad
path: ${{ env.dir }}_cad/**

- uses: actions/upload-artifact@v3
if: ${{ success() }}
with:
Expand All @@ -272,15 +272,15 @@ jobs:
- name: Download a Build Artifact
uses: actions/[email protected]

- name: Remove old manufarturing data
run: |
run: |
rm -r hw/cam_profi || true
rm -r doc/gen || true
- name: Extract to right position
run: |
mkdir doc || true
mkdir doc/gen || true
mkdir doc/gen/img || true
Expand All @@ -291,7 +291,7 @@ jobs:
mkdir hw/cam_profi/gbr || true
mkdir hw/cam_profi/assembly || true
mkdir hw/cam_profi/ibom || true
cp -r doc_img/* doc/gen/img || true
cp -r doc_cad/cad/* doc/gen || true
cp -r hw_cam_profi/* hw/cam_profi/gbr || true
Expand All @@ -313,9 +313,9 @@ jobs:
rm -r doc_xml || true
rm -r doc_report || true
rm -r doc_ibom || true
git add . -f
- uses: stefanzweifel/[email protected]
with:
commit_message: Update actions products
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[submodule "doc/assets"]
path = doc/assets
url = [email protected]:MLAB-project/documents.git
branch=KiCADv7
branch=KiCADv8
Loading

0 comments on commit 0e02475

Please sign in to comment.