Skip to content

Commit fd4c057

Browse files
authored
Merge pull request #18 from diffCheckOrg/glb_lcl_registration_wrap
Registrations wraps/components + downsample components
2 parents 90d1586 + 4dd94c9 commit fd4c057

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1267
-282
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}}/invokes/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:

assets/icon_pool/iconizer/icon.xcf

6.32 KB
Binary file not shown.
8.74 KB
Loading
8.9 KB
Loading
9.7 KB
Loading
9.78 KB
Loading
9.37 KB
Loading
9.91 KB
Loading
3.49 KB
Binary file not shown.

0 commit comments

Comments
 (0)