Sin descripción
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.

scad.yml 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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: STLs
  27. # build for each push and pull request
  28. on: [push, pull_request]
  29. jobs:
  30. render:
  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 apt update
  44. sudo apt-get install -y openscad zip
  45. - name: Render STLs
  46. run: |
  47. ./3dprint/generate_stls.sh
  48. - name: Upload part files
  49. uses: actions/upload-artifact@v4.0.0
  50. with:
  51. name: drumkit-stl
  52. path: 3dprint/stl
  53. if-no-files-found: error
  54. - name: Archive release files
  55. if: startsWith(github.ref, 'refs/tags/')
  56. run: |
  57. cd 3dprint
  58. zip -r drumkit-stl stl
  59. - name: Upload release files
  60. if: startsWith(github.ref, 'refs/tags/')
  61. uses: softprops/action-gh-release@v1
  62. with:
  63. files: 3dprint/drumkit-stl.zip