Skip to content

Commit 29c0611

Browse files
committed
WIP: testing new componentizer with pointcloud input
1 parent 864f445 commit 29c0611

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'Grasshopper componentizer'
2+
description: 'Create GHUser components from Python source code'
3+
inputs:
4+
source:
5+
description: 'Source directory where code for all components is stored'
6+
required: true
7+
target:
8+
description: 'Target directory for ghuser files'
9+
required: true
10+
prefix:
11+
description: 'Add this prefix to the name of each generated component'
12+
required: false
13+
14+
runs:
15+
using: 'composite'
16+
steps:
17+
- name: Install Grasshopper
18+
run: nuget install Grasshopper -OutputDirectory ./lib -source https://api.nuget.org/v3/index.json
19+
shell: pwsh
20+
21+
- name: Launch componentizer
22+
run: |
23+
$command="python"
24+
$componentizer="${{github.workspace}}/invoke/ghcomponentize/ghcomponentizer.py"
25+
$params=$componentizer, "${{ inputs.source }}", "${{ inputs.target }}", "--ghio", "./lib"
26+
$prefix="${{ inputs.prefix }}"
27+
if( $prefix )
28+
{
29+
$params=$params + "--prefix", "$prefix"
30+
}
31+
& $command $params
32+
shell: pwsh
33+
branding:
34+
icon: 'box'
35+
color: 'orange'

.github/workflows/gh-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ jobs:
1919
choco install python --version=3.9.10
2020
python -m pip install pythonnet==3.0.3
2121
22-
- uses: compas-dev/compas-actions.ghpython_components@v5
22+
- uses: ./.github/actions/gh-action-componentizer
2323
with:
2424
source: src/gh/components
2525
target: build
26-
interpreter: cpython
2726

2827
- uses: actions/upload-artifact@v2
2928
with:

deps/eigen

Submodule eigen updated from de8013f to b9b1c86

invokes/ghcomponentize/ghcomponentizer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
surface="f4070a37-c822-410f-9057-100d2e22a22d",
4848
subd="20f4ca9c-6c90-4fd6-ba8a-5bf9ca79db08",
4949
brep="2ceb0405-fdfe-403d-a4d6-8786da45fb9d",
50+
pointcloud="d73c9fb0-365d-458f-9fb5-f4141399311f",
5051
geometrybase="c37956f4-d39c-49c7-af71-1e87f8031b26"
5152
)
5253

0 commit comments

Comments
 (0)