Skip to content

Testing output fix

Testing output fix #4

Workflow file for this run

name: Build Bases
on:
pull_request:
push:
branches: [ master, main, develop ]
jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: "${{ steps.set-matrix.outputs.matrix }}"
steps:
- name: Checkout build repo
uses: actions/checkout@v2
- name: Checkout gridfinity repo
uses: actions/checkout@master
with:
repository: kennetek/gridfinity-rebuilt-openscad
path: gridfinity-rebuilt-openscad
- name: Create output folder if needed
run: |
mkdir -p stls
- id: set-matrix
run: |
echo -n 'matrix=' >> $GITHUB_OUTPUT
cat params/Base.json | jq '.parameterSets | keys' >> $GITHUB_OUTPUT
build:
needs: [ setup ]
runs-on: ubuntu-latest
strategy:
matrix:
pset: "${{ fromJSON(needs.setup.outputs.matrix) }}"
steps:
- uses: gpmidi/openscad-build-action@main
with:
input-file: gridfinity-rebuilt-openscad/gridfinity-rebuilt-baseplate.scad
output-file: "stls/base-${{ matrix.pset.key }}.stl"
customizer-parameter-file: "params/Base.json"
customizer-parameter-set: "${{ matrix.pset.key }}"
- uses: actions/upload-artifact@v4
with:
name: "base-${{ matrix.pset.key }}"
path: "stls/base-${{ matrix.pset.key }}.stl"