Skip to content

Commit

Permalink
Bumped version to 3.4.1
Browse files Browse the repository at this point in the history
Updated libs
Added more tests regarding the version to the CI
  • Loading branch information
PatrickBaus committed Jan 30, 2024
1 parent 12dedef commit 74a0834
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 23 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ jobs:
exit 1
shell: bash

- name: Test for correct git tag
if: github.ref_type == 'tag' && github.ref_name != steps.extract_sch_revision.outputs.value
run: |
echo "::error::Revision number of the schematic/PCB (${{ steps.extract_sch_revision.outputs.value }}) does not match the Github tag (${{ github.ref_name }})."
exit 1
shell: bash

ERC:
name: Run ERC
runs-on: ubuntu-latest
Expand All @@ -91,7 +98,7 @@ jobs:
skip: run_drc
targets: __NONE__ # Only run preflights

- name: Retrieve results
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: ERC_Output
Expand All @@ -117,7 +124,7 @@ jobs:
skip: run_erc
targets: __NONE__ # Only run preflights

- name: Retrieve results
- name: Upload results
uses: actions/upload-artifact@v4
with:
name: DRC_Output
Expand Down Expand Up @@ -148,19 +155,19 @@ jobs:
- name: Upload bill of materials files as artifact
uses: actions/upload-artifact@v4
with:
name: bom-${{ matrix.variant }}
name: manufacturing_files-bom-${{ matrix.variant }}
path: bom_files_compressed

- name: Upload schematic files as artifact
uses: actions/upload-artifact@v4
with:
name: schematics-${{ matrix.variant }}
name: manufacturing_files-schematics-${{ matrix.variant }}
path: schematics

- name: Upload schematic files as artifact
- name: Upload Gerber files as artifact
uses: actions/upload-artifact@v4
with:
name: gerber_files-${{ matrix.variant }}
name: manufacturing_files-gerber-${{ matrix.variant }}
path: gerber_files_compressed

release:
Expand All @@ -175,13 +182,9 @@ jobs:
- name: Download manufacturing files artifact
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Merge artifacts
run: |
mkdir ./manufacturing_files
mv artifacts/*/* ./manufacturing_files
shell: bash
path: manufacturing_files
pattern: manufacturing_files-*
merge-multiple: true

- name: Display structure of downloaded files
run: ls -R
Expand All @@ -191,7 +194,7 @@ jobs:
- name: Append BOM (bill of materials) as asset
if: github.event.action == 'published'
run: |
mv "./manufacturing_files/bom/bom_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_bom_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip
mv "./manufacturing_files/bom_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_bom_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip
gh release upload ${{ github.ref_name }} ${{ needs.tests.outputs.basename }}_bom_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip#"Bill of materials for the ${{ matrix.variant }} variant (zip)" --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -200,7 +203,7 @@ jobs:
- name: Append schematics as asset
if: github.event.action == 'published'
run: |
mv "./manufacturing_files/schematics/schematics_(${{ matrix.variant }}).pdf" ${{ needs.tests.outputs.basename }}_schematics_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.pdf
mv "./manufacturing_files/$(basename ${{ env.SCHEMATIC_FILE }} .kicad_sch)_schematics_${{ needs.tests.outputs.revision }}_(${{ matrix.variant }}).pdf" ${{ needs.tests.outputs.basename }}_schematics_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.pdf
gh release upload ${{ github.ref_name }} ${{ needs.tests.outputs.basename }}_schematics_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.pdf#"Schematics for the ${{ matrix.variant }} variant (pdf)" --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -209,7 +212,7 @@ jobs:
- name: Append position files as asset
if: github.event.action == 'published'
run: |
mv "./manufacturing_files/gerber_files/pos_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_position_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip
mv "./manufacturing_files/pos_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_position_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip
gh release upload ${{ github.ref_name }} ${{ needs.tests.outputs.basename }}_position_${{ needs.tests.outputs.revision }}_${{ matrix.variant }}.zip#"Pick & Place position files for the ${{ matrix.variant }} variant (zip)" --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -218,7 +221,7 @@ jobs:
- name: Append Gerber files as asset
if: github.event.action == 'published' && matrix.variant == 'default'
run: |
mv "./manufacturing_files/gerber_files/gerbers.zip" ${{ needs.tests.outputs.basename }}_gerber_${{ needs.tests.outputs.revision }}_all.zip
mv "./manufacturing_files/gerbers_(${{ matrix.variant }}).zip" ${{ needs.tests.outputs.basename }}_gerber_${{ needs.tests.outputs.revision }}_all.zip
gh release upload ${{ github.ref_name }} ${{ needs.tests.outputs.basename }}_gerber_${{ needs.tests.outputs.revision }}_all.zip#"Gerber files for all variants (zip)" --repo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion LM399.kicad_sch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(title_block
(title "LM399 negative voltage reference")
(date "2023-11-26")
(rev "v3.4.1")
(rev "3.4.1")
(comment 1 "Copyright (©) 2023, Patrick Baus <[email protected]>")
(comment 2 "Licensed under CERN OHL-W v2.0")
)
Expand Down
2 changes: 1 addition & 1 deletion reference_board.kicad_pcb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
(title_block
(title "LM399/ADR1399 Negative Voltage Reference")
(date "2023-11-25")
(rev "v3.4.1")
(rev "3.4.1")
(comment 1 "Copyright (©) 2022, Patrick Baus <[email protected]>")
(comment 2 "Licensed under CERN OHL-W v2.0")
)
Expand Down
17 changes: 13 additions & 4 deletions reference_board.kicad_sch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
(title_block
(title "LM399/ADR1399 negative voltage reference")
(date "2023-11-26")
(rev "v3.4.1")
(rev "3.4.1")
(comment 1 "Copyright (©) 2023, Patrick Baus <[email protected]>")
(comment 2 "Licensed under CERN OHL-W v2.0")
)
Expand Down Expand Up @@ -175,10 +175,10 @@
)
)
(symbol "Custom_logos:SYM_RoHS" (in_bom no) (on_board no)
(property "Reference" "#SYM" (at 0 6.35 0)
(property "Reference" "#SYM" (at 0 3.81 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "SYM_RoHS" (at 0 -6.35 0)
(property "Value" "SYM_RoHS" (at 0 -3.81 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Footprint" "" (at 7.62 0 0)
Expand All @@ -193,7 +193,10 @@
(property "ki_keywords" "symbol logo rohs" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "RoHS logo" (at 0 0 0)
(property "ki_description" "RoHS (Restriction of Hazardous Substances Directive) logo" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "RoHS?Logo*" (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "SYM_RoHS_1_0"
Expand Down Expand Up @@ -1448,6 +1451,12 @@
(property "Sim.Enable" "0" (at 236.22 171.45 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "MFN" "" (at 236.22 171.45 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "PN" "" (at 236.22 171.45 0)
(effects (font (size 1.27 1.27)) hide)
)
(instances
(project "reference_board"
(path "/afb8e687-4a13-41a1-b8c0-89a749e897fe"
Expand Down

0 comments on commit 74a0834

Please sign in to comment.