Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. # SPDX-FileCopyrightText: 2024 Thomas Buck <thomas@xythobuz.de>
  2. # SPDX-License-Identifier: CERN-OHL-S-2.0+
  3. #
  4. # ------------------------------------------------------------------------------
  5. # | Copyright (c) 2024 Thomas Buck <thomas@xythobuz.de> |
  6. # | |
  7. # | This source describes Open Hardware and is licensed under the CERN-OHL-S v2 |
  8. # | or any later version. |
  9. # | |
  10. # | You may redistribute and modify this source and make products using it under |
  11. # | the terms of the CERN-OHL-S v2 (https://ohwr.org/cern_ohl_s_v2.txt) |
  12. # | or any later version. |
  13. # | |
  14. # | This source is distributed WITHOUT ANY EXPRESS OR IMPLIED WARRANTY, |
  15. # | INCLUDING OF MERCHANTABILITY, SATISFACTORY QUALITY AND FITNESS FOR A |
  16. # | PARTICULAR PURPOSE. Please see the CERN-OHL-S v2 (or any later version) |
  17. # | for applicable conditions. |
  18. # | |
  19. # | Source location: https://git.xythobuz.de/thomas/drumkit |
  20. # | |
  21. # | As per CERN-OHL-S v2 section 4, should You produce hardware based on this |
  22. # | source, You must where practicable maintain the Source Location visible |
  23. # | on the external case of the Gizmo or other products you make using this |
  24. # | source. |
  25. # ------------------------------------------------------------------------------
  26. name: PCB
  27. # build for each push and pull request
  28. on: [push, pull_request]
  29. jobs:
  30. fabrication:
  31. runs-on: ubuntu-latest
  32. permissions:
  33. contents: write
  34. steps:
  35. - name: Checkout repo
  36. uses: actions/checkout@v4
  37. with:
  38. fetch-depth: 0
  39. - name: Checkout repo submodules
  40. run: git submodule update --init
  41. - name: Install dependencies
  42. run: |
  43. sudo add-apt-repository --yes ppa:kicad/kicad-8.0-releases
  44. sudo apt update
  45. sudo apt install -y --install-recommends kicad
  46. sudo apt-get install -y zip
  47. - name: Generate fabrication files
  48. run: |
  49. ./pcb/generate_fab.sh
  50. ./pcb2/generate_fab.sh
  51. - name: Upload board files
  52. uses: actions/upload-artifact@v4.0.0
  53. with:
  54. name: prototype-pcb
  55. path: pcb/fabrication
  56. - name: Upload board files
  57. uses: actions/upload-artifact@v4.0.0
  58. with:
  59. name: v2-pcb
  60. path: pcb2/fabrication
  61. - name: Rename release files
  62. if: startsWith(github.ref, 'refs/tags/')
  63. run: |
  64. mv pcb/fab.zip fab_proto.zip
  65. mv pcb2/fab.zip fab_v2.zip
  66. - name: Upload release files
  67. if: startsWith(github.ref, 'refs/tags/')
  68. uses: softprops/action-gh-release@v1
  69. with:
  70. files: fab_proto.zip fab_v2.zip