Skip to content

Commit

Permalink
WIP: testing reformat CI
Browse files Browse the repository at this point in the history
  • Loading branch information
9and3 committed Jan 23, 2024
1 parent 47d1916 commit 214fa46
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 19 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@ jobs:
- uses: actions/checkout@v2
- uses: NuGet/[email protected]

- name: Install Python3
uses: actions/setup-python@v2
with:
python-version: '3.9.10'
- name: Install pythonnet
run: |
pip install pythonnet
# - name: Install IronPython
# run: |
# choco install ironpython --version=2.7.8.1

- name: Run
uses: ./
Expand Down
35 changes: 23 additions & 12 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,29 @@ inputs:
runs:
using: 'composite'
steps:
- run: nuget install Grasshopper -OutputDirectory ./lib -source https://api.nuget.org/v3/index.json
shell: pwsh
- run: |
$command="python"
$params="${{ github.action_path }}/componentize.py", "${{ inputs.source }}", "${{ inputs.target }}", "--ghio", "./lib"
$prefix="${{ inputs.prefix }}"
if( $prefix )
{
$params=$params + "--prefix", "$prefix"
}
& $command $params
shell: pwsh
- name: Install Python3
uses: actions/setup-python@v2
with:
python-version: '3.9.10'
- name: Install pythonnet
run: |
pip install pythonnet
- name: Install Grasshopper
run: nuget install Grasshopper -OutputDirectory ./lib -source https://api.nuget.org/v3/index.json
shell: pwsh

- name: Call componentizer
run: |
$command="python"
$params="${{ github.action_path }}/componentize.py", "${{ inputs.source }}", "${{ inputs.target }}", "--ghio", "./lib"
$prefix="${{ inputs.prefix }}"
if( $prefix )
{
$params=$params + "--prefix", "$prefix"
}
& $command $params
shell: pwsh
branding:
icon: 'box'
color: 'orange'

0 comments on commit 214fa46

Please sign in to comment.