-
Notifications
You must be signed in to change notification settings - Fork 3
114 lines (91 loc) · 3.18 KB
/
build.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: Meadow.Sdk
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
mac_build:
name: Build Meadow.Sdk and Project Templates for VS for Mac Extension
runs-on: macos-11
steps:
- name: Checkout Meadow.Sdk side-by-side
uses: actions/checkout@v2
with:
path: Meadow.Sdk
- name: Checkout Mac Extension side-by-side
uses: actions/checkout@v2
with:
repository: WildernessLabs/VS_Mac_Meadow_Extension
path: vs-mac
- name: Checkout Meadow.CLI side-by-side
uses: actions/checkout@v2
with:
repository: WildernessLabs/Meadow.CLI
path: Meadow.CLI
ref: develop
- name: Set default Xcode 13.0
run: |
XCODE_ROOT=/Applications/Xcode_13.0.0.app
echo "MD_APPLE_SDK_ROOT=$XCODE_ROOT" >> $GITHUB_ENV
sudo xcode-select -s $XCODE_ROOT
- name: Setup .NET Core SDK 5.0.x & 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
5.0.x
6.0.x
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Restore dependencies
run: msbuild Meadow.Sdk/Meadow_DotNet_SDK/Meadow_SDK.sln /t:Restore
- name: Meadow.Sdk
run: msbuild Meadow.Sdk/Meadow_DotNet_SDK/Meadow.SDK/Meadow.SDK.csproj /t:Rebuild /p:Configuration=Release
- name: Upload Nuget Artifacts
uses: actions/upload-artifact@v2
with:
name: Meadow.SDK.nuget
path: 'Meadow.Sdk/Meadow_DotNet_SDK/Meadow.SDK/bin/Release/*.nupkg'
- name: Build Project Templates
run: msbuild Meadow.Sdk/Meadow_DotNet_SDK/Project_Templates/Project_Templates.csproj /t:Rebuild /p:Configuration=Release
- name: Upload Nuget Artifacts
uses: actions/upload-artifact@v2
with:
name: Project_Templates.nuget
path: 'Meadow.Sdk/Meadow_DotNet_SDK/Project_Templates/bin/Release/*.nupkg'
code_build:
runs-on: windows-latest
name: Build Meadow.Sdk and Project Templates for VS Code Extension
steps:
- name: Checkout Meadow.Sdk side-by-side
uses: actions/checkout@v2
with:
path: Meadow.Sdk
- name: Checkout Meadow.CLI side-by-side
uses: actions/checkout@v2
with:
repository: WildernessLabs/Meadow.CLI
path: Meadow.CLI
ref: develop
- name: Checkout VSCode Extension side-by-side
uses: actions/checkout@v2
with:
repository: WildernessLabs/VSCode_Meadow_Extension
path: vs-code
submodules: true
- name: Setup .NET Core SDK 5.0.x & 6.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
5.0.x
6.0.x
- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5
- name: Add MSBuild to Path
uses: microsoft/setup-msbuild@v1.1
- name: Restore dependencies
run: msbuild Meadow.Sdk/Meadow_DotNet_SDK/Meadow_SDK.sln /t:Restore
- name: Meadow.Sdk
run: msbuild Meadow.Sdk/Meadow_DotNet_SDK/Meadow.SDK/Meadow.SDK.csproj /t:Rebuild /p:Configuration=Release
- name: Build Project Templates
run: msbuild Meadow.Sdk/Meadow_DotNet_SDK/Project_Templates/Project_Templates.csproj /t:Rebuild /p:Configuration=Release