Skip to content

Commit 3d6f04c

Browse files
authored
Merge pull request #15 from compas-dev/ipy_v2
Ipy v2
2 parents dbd0108 + b7f2ff1 commit 3d6f04c

File tree

7 files changed

+553
-0
lines changed

7 files changed

+553
-0
lines changed

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,26 @@ jobs:
4545
- uses: actions/upload-artifact@v4
4646
with:
4747
name: ipy_ghuser-components
48+
path: build
49+
50+
build_ipy_v2_ghuser_components:
51+
runs-on: windows-latest
52+
steps:
53+
- uses: actions/checkout@v2
54+
- uses: NuGet/setup-nuget@v1.0.5
55+
56+
- name: Install IronPython
57+
run: |
58+
choco install ironpython --version=2.7.8.1
59+
60+
- name: Run
61+
uses: ./
62+
with:
63+
source: examples/ipy_v2
64+
target: build
65+
interpreter: ipy_v2
66+
67+
- uses: actions/upload-artifact@v4
68+
with:
69+
name: ipy_v2_ghuser-components
4870
path: build

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,37 @@ jobs:
8080
path: build
8181
```
8282
83+
For IronPython2 (RhinoV8):
84+
85+
```yaml
86+
on: [push]
87+
88+
jobs:
89+
build_ipy_ghuser_components:
90+
runs-on: windows-latest
91+
steps:
92+
- uses: actions/checkout@v2
93+
- uses: NuGet/setup-nuget@v1.0.5
94+
95+
- name: Install IronPython
96+
run: |
97+
choco install ironpython --version=2.7.8.1
98+
99+
- uses: compas-dev/compas-actions.ghpython_components@v5
100+
with:
101+
source: components
102+
target: build
103+
interpreter: ipy_v2
104+
105+
# The components have been built at this step.
106+
# Now you can choose what to do with them, e.g.:
107+
# upload them as artifacts:
108+
- uses: actions/upload-artifact@v2
109+
with:
110+
name: ipy_ghuser-components
111+
path: build
112+
```
113+
83114
84115
Commit, push and enjoy! 🍿
85116
@@ -90,16 +121,19 @@ Make sure to have IronPython or Python3/pythonnet installed and the `GH_IO.dll`
90121
Then start the script pointing it to a source and target folder, e.g.:
91122

92123
ipy componentize_ipy.py examples/ipy build
124+
ipy componentize_ipy_v2.py examples/ipy_v2 build
93125
python componentize_cpy.py examples/cpy build
94126

95127
Optionally, tag it with a version:
96128

97129
ipy componentize_ipy.py examples/ipy build --version 0.1.2
130+
ipy componentize_ipy_v2.py examples/ipy_v2 build --version 0.1.2
98131
python componentize_cpy.py examples/cpy build --version 0.1.2
99132

100133
An optional name prefix can help tell components apart from other similarly named ones:
101134

102135
ipy componentize_ipy.py examples/ipy build --prefix "(PACKAGE-NAME)"
136+
ipy componentize_ipy.py examples/ipy_v2 build --prefix "(PACKAGE-NAME)"
103137
python componentize_cpy.py examples/cpy build --prefix "(PACKAGE-NAME)"
104138

105139
## How to create components

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ runs:
2727
if ("${{ inputs.interpreter }}" -eq "cpython") {
2828
$command="python"
2929
$componentizer="${{ github.action_path }}/componentize_cpy.py"
30+
} elseif ("${{ inputs.interpreter }}" -eq "ipy_v2"){
31+
$command="ipy"
32+
$componentizer="${{ github.action_path }}/componentize_ipy_v2.py"
3033
} else {
3134
$command="ipy"
3235
$componentizer="${{ github.action_path }}/componentize_ipy.py"

0 commit comments

Comments
 (0)