mirror of
https://github.com/jhbruhn/butns.git
synced 2025-07-02 01:18:50 +00:00
54 lines
No EOL
1.6 KiB
YAML
54 lines
No EOL
1.6 KiB
YAML
name: Build Case STLs
|
|
|
|
on:
|
|
- push
|
|
- pull_request
|
|
|
|
jobs:
|
|
build-stls:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Generate Case
|
|
uses: jhbruhn/openscad-build-action@main
|
|
with:
|
|
input-file: 'hardware/case/case.scad'
|
|
output-file: 'case.stl'
|
|
- name: Generate Buttons
|
|
uses: jhbruhn/openscad-build-action@main
|
|
with:
|
|
input-file: 'hardware/case/buttons.scad'
|
|
output-file: 'buttons.stl'
|
|
customizer-parameter-file: 'hardware/case/buttons.json'
|
|
customizer-parameter-set: 'Buttons'
|
|
- name: Generate Inlay
|
|
uses: jhbruhn/openscad-build-action@main
|
|
with:
|
|
input-file: 'hardware/case/buttons.scad'
|
|
output-file: 'buttons-tpu-inlay.stl'
|
|
customizer-parameter-file: 'hardware/case/buttons.json'
|
|
customizer-parameter-set: 'Inlay'
|
|
- name: Generate Light Blockers
|
|
uses: jhbruhn/openscad-build-action@main
|
|
with:
|
|
input-file: 'hardware/case/buttons.scad'
|
|
output-file: 'buttons-black-blockers.stl'
|
|
customizer-parameter-file: 'hardware/case/buttons.json'
|
|
customizer-parameter-set: 'Blockers'
|
|
- name: Archive
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: case
|
|
path: case.stl
|
|
- name: Archive
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: buttons
|
|
path: |
|
|
buttons.stl
|
|
buttons-tpu-inlay.stl
|
|
buttons-black-blockers.stl |