-
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.
- Loading branch information
jacho
committed
Sep 27, 2023
1 parent
ad47407
commit f281c37
Showing
1 changed file
with
31 additions
and
23 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 |
---|---|---|
|
@@ -33,7 +33,7 @@ jobs: | |
token: ${{ secrets.pat }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/erc.kibot.yaml | ||
schema: ${{ env.schema }} | ||
|
@@ -51,7 +51,7 @@ jobs: | |
token: ${{ secrets.pat }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/drc.kibot.yaml | ||
schema: ${{ env.schema }} | ||
|
@@ -69,7 +69,7 @@ jobs: | |
token: ${{ secrets.pat }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/schematics.kibot.yaml | ||
schema: ${{ env.schema }} | ||
|
@@ -93,30 +93,38 @@ jobs: | |
token: ${{ secrets.pat }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/placement.kibot.yaml | ||
schema: ${{ env.schema }} | ||
board: ${{ env.board }} | ||
dir: ${{ env.dir }}_docs | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/xml.kibot.yaml | ||
schema: ${{ env.schema }} | ||
board: ${{ env.board }} | ||
dir: ${{ env.dir }}_docs | ||
|
||
- name: "Rename output" | ||
# - name: "Rename output" | ||
# run: | | ||
# for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done | ||
# for file in $(find ${{env.dir}}_docs -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done | ||
|
||
- name: "Collect files" | ||
run: | | ||
for file in $(find ${{env.dir}} -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done | ||
for file in $(find ${{env.dir}}_docs -type f); do sudo mv "${file}" "${file//${{env.project}}/${{env.branch}}}" ; done | ||
tree | ||
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: | ||
name: doc_xml | ||
path: hw/sch_pcb/*.xml | ||
path: | | ||
doc_xml | ||
# Zde se zahazuji debugovaci videa | ||
- uses: actions/upload-artifact@v3 | ||
|
@@ -138,7 +146,7 @@ jobs: | |
token: ${{ secrets.pat }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/report.kibot.yaml | ||
schema: ${{ env.schema }} | ||
|
@@ -162,7 +170,7 @@ jobs: | |
token: ${{ secrets.pat }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/ibom.kibot.yaml | ||
schema: ${{ env.schema }} | ||
|
@@ -191,7 +199,7 @@ jobs: | |
token: ${{ secrets.pat }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/gerbers.kibot.yaml | ||
schema: ${{ env.schema }} | ||
|
@@ -220,14 +228,14 @@ jobs: | |
token: ${{ secrets.pat }} | ||
ref: ${{ github.head_ref }} | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/cad.kibot.yaml | ||
schema: ${{ env.schema }} | ||
board: ${{ env.board }} | ||
dir: ${{ env.dir }}_cad | ||
|
||
- uses: INTI-CMNB/KiBot@v2_dk6 | ||
- uses: INTI-CMNB/KiBot@v2_dk7 | ||
with: | ||
config: ${{ env.kibot }}/render.kibot.yaml | ||
schema: ${{ env.schema }} | ||
|
@@ -280,20 +288,22 @@ jobs: | |
mkdir doc/img/render || true | ||
mkdir hw || true | ||
mkdir hw/cam_profi || true | ||
mkdir hw/cam_profi/grb || true | ||
mkdir hw/cam_profi/gbr || true | ||
mkdir hw/cam_profi/assembly || true | ||
mkdir hw/cam_profi/ibom || true | ||
|
||
cp doc/assets/kibot/autogenerated.md hw/cam_profi.readme.md || 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/grb || true | ||
cp -r hw_cam_profi/* hw/cam_profi/gbr || true | ||
cp -r doc_sch/docs/* doc/gen || true | ||
cp -r doc_xml/* hw/cam_profi || true | ||
cp -r doc_sch/img/pcb/* doc/gen/img || true | ||
cp -r doc_placement/doc* hw/cam_profi || true | ||
mv -r doc_placement/PnP/* hw/cam_profi/assembly || true | ||
cp -r doc_placement/* hw/cam_profi/assembly || true | ||
cp -r doc_report/* doc/gen || true | ||
cp -r doc_ibom/docs/* hw/cam_profi/ibom || true | ||
cp -r doc_ibom/docs/* hw/cam_profi || true | ||
|
||
mv hw/cam_profi/gbr/PnP/ hw/cam_profi/assembly || true | ||
|
||
rm -r doc_img || true | ||
rm -r doc_cad || true | ||
|
@@ -304,8 +314,6 @@ jobs: | |
rm -r doc_report || true | ||
rm -r doc_ibom || true | ||
|
||
tree | ||
|
||
git add . -f | ||
|
||
- uses: stefanzweifel/[email protected] | ||
|