Skip to content

Commit

Permalink
Merge aac1652 into 8f4739e
Browse files Browse the repository at this point in the history
  • Loading branch information
CartBlanche authored Dec 3, 2021
2 parents 8f4739e + aac1652 commit ad5a93d
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
83 changes: 83 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: VS4Win Extension

on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]

jobs:
build:

runs-on: windows-latest

steps:
- name: Checkout current repo
uses: actions/checkout@v2
with:
path: main

- name: Checkout Meadow.CLI.Core side-by-side
uses: actions/checkout@v2
with:
repository: WildernessLabs/Meadow.CLI
path: Meadow.CLI
ref: VS2019

- name: Setup .NET Core SDK 5.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Setup NuGet
uses: NuGet/[email protected]

- name: Restore VS2019 dependencies
run: dotnet restore main/VS_Meadow_Extension.2019.sln

- name: Add MSBuild to Path
uses: microsoft/[email protected]
with:
vs-version: '[16.0, 17.0)'

- name: Build VS2019 Extension
id: VS2019-Extension
run: msbuild main/VS_Meadow_Extension.2019.sln -t:rebuild /p:Configuration=Release
env:
DevEnvDir: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE'

- uses: actions/create-release@v1
id: create_vs2019_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}

- name: Publish VS2019 Extension
run: ${VSInstallDir}\VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe publish -payload ${{ steps.create_vs2019_release.outputs.upload_url }}/Meadow.2019.vsix -publishManifest ${{ steps.create_vs2019_release.outputs.upload_url }}/vs-publish.json -ignoreWarnings "VSIXValidatorWarning01,VSIXValidatorWarning02"

- name: Restore VS2022 dependencies
run: dotnet restore main/VS_Meadow_Extension.2022.sln

- name: Add MSBuild to Path
uses: microsoft/[email protected]
with:
vs-version: '[17.0, 18.0)'

- name: Build VS2022 Extension
id: VS2022-Extension
run: msbuild main/VS_Meadow_Extension.2022.sln -t:rebuild /p:Configuration=Release
env:
DevEnvDir: 'C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE'

- uses: actions/create-release@v1
id: create_vs2022_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}

- name: Publish VS2022 Extension
run: ${VSInstallDir}\VSSDK\VisualStudioIntegration\Tools\Bin\VsixPublisher.exe publish -payload ${{ steps.create_vs2022_release.outputs.upload_url }}/Meadow.2022.vsix -publishManifest ${{ steps.create_vs2022_release.outputs.upload_url }}/vs-publish.json -ignoreWarnings "VSIXValidatorWarning01,VSIXValidatorWarning02"
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CopyVsixExtensionFiles>False</CopyVsixExtensionFiles>
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -42,6 +43,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
Expand All @@ -49,6 +50,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RuntimeIdentifier>win</RuntimeIdentifier>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This is the add-in for Visual Studio that enables Meadow projects to be built and deployed on Windows.

## Build Status

[![Build](https://github.com/WildernessLabs/VS_Win_Meadow_Extension/actions/workflows/dotnet.yml/badge.svg)](https://github.com/WildernessLabs/VS_Win_Meadow_Extension/actions)

## Getting Started

The [Meadow.CLI](https://github.com/WildernessLabs/Meadow.CLI) repo must be cloned adjacent to this checkout.
Expand Down

0 comments on commit ad5a93d

Please sign in to comment.