-
-
Notifications
You must be signed in to change notification settings - Fork 8
79 lines (65 loc) · 2.31 KB
/
build-component.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Build Grasshopper Plugin
on:
push:
branches: [develop]
pull_request:
branches: [main, develop]
jobs:
build:
strategy:
matrix:
configuration: [Debug]
runs-on: windows-latest # For a list of available runner types, refer to
env:
Main_Solution_Name: Tunny.sln
DE_Solution_Name: TT-DesignExplorer/DesignExplorer.sln
Plugin_File_Name: Tunny
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Download python & wheel zip
shell: powershell
run: |
cd Tunny/Lib
./setup-python-lib.bat
cd ../..
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
- name: Restore the Tunny application
run: msbuild $env:Main_Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Build the Tunny application
run: msbuild $env:Main_Solution_Name /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Restore the design explorer application
run: msbuild $env:DE_Solution_Name /t:Restore /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Build the design explorer application
run: msbuild $env:DE_Solution_Name /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}
- name: Copy items to /Release dir
shell: powershell
run: |
cp ./Examples ./Release/Examples -recurse
cp ./LICENSE ./Release/LICENSE.txt
cp ./PYTHON_PACKAGE_LICENSES ./Release/PYTHON_PACKAGE_LICENSES.txt
cp ./Tunny/bin/Debug/net48 ./Release/Tunny -recurse
cp ./TT-DesignExplorer/server/bin/Debug/net48/TT-DesignExplorer.zip ./Release/Tunny/Lib/TT-DesignExplorer.zip
cp ./Examples ./Release/Tunny/Examples -recurse
- name: Upload release build of plugin as artefact
uses: actions/upload-artifact@v4
with:
name: Tunny
path: |
./Release
retention-days: 1
compression-level: 9