Update 1.12.9 #234
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
path: Meadow.Sdk | |
- name: Checkout Mac Extension side-by-side | |
uses: actions/checkout@v4 | |
with: | |
repository: WildernessLabs/VS_Mac_Meadow_Extension | |
path: vs-mac | |
- name: Checkout Meadow.CLI side-by-side | |
uses: actions/checkout@v4 | |
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@v4 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v2 | |
- 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@v4 | |
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@v4 | |
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@v4 | |
with: | |
path: Meadow.Sdk | |
- name: Checkout Meadow.CLI side-by-side | |
uses: actions/checkout@v4 | |
with: | |
repository: WildernessLabs/Meadow.CLI | |
path: Meadow.CLI | |
ref: develop | |
- name: Checkout VSCode Extension side-by-side | |
uses: actions/checkout@v4 | |
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@v4 | |
with: | |
dotnet-version: | | |
5.0.x | |
6.0.x | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v2 | |
- name: Add MSBuild to Path | |
uses: microsoft/setup-msbuild@v2 | |
- 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 |