Skip to content

Commit

Permalink
Fixing output method
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmidi committed Jan 29, 2025
1 parent 92e9af7 commit 6a637df
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/bases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,41 @@ jobs:
setup:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
matrix: "${{ steps.set-matrix.outputs.matrix }}"
steps:
- name: Checkout code
- 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: |
JSON=$(cat params/Base.json | jq '.parameterSets | keys' )
echo "::set-output name=matrix::${JSON//'%'/'%25'}"
echo "matrix=${JSON//'%'/'%25'}" >> $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 }}"
Expand Down

0 comments on commit 6a637df

Please sign in to comment.