Skip to content

Commit

Permalink
Making base build for all params in base.json
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmidi committed Jan 29, 2025
1 parent 024c9b1 commit 92e9af7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 33 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/bases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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 code
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: |
JSON=$(cat params/Base.json | jq '.parameterSets | keys' )
echo "::set-output name=matrix::${JSON//'%'/'%25'}"
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"
33 changes: 0 additions & 33 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit 92e9af7

Please sign in to comment.