Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "monthly"
54 changes: 54 additions & 0 deletions .github/workflows/CI_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI_build

on: [push, pull_request]

jobs:
build:

runs-on: windows-latest
strategy:
max-parallel: 6
matrix:
build_configuration: [Release, Debug]
build_platform: [x64, Any CPU]

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1

- name: MSBuild of plugin dll
working-directory: .
run: msbuild BracketsCheck.sln /m /p:configuration="${{ matrix.build_configuration }}" /p:platform="${{ matrix.build_platform }}"

- name: Archive artifacts for ${{ matrix.build_platform }}
if: matrix.build_platform == 'x64' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v3
with:
name: BracketsCheck-${{ steps.tagName.outputs.tag }}-x64
path: BracketsCheck\bin\${{ matrix.build_platform }}\${{ matrix.build_configuration }}\BracketsCheck.dll

- name: Archive artifacts for ${{ matrix.build_platform }}
if: matrix.build_platform == 'Any CPU' && matrix.build_configuration == 'Release'
uses: actions/upload-artifact@v3
with:
name: BracketsCheck-${{ steps.tagName.outputs.tag }}-x86
path: BracketsCheck\bin\${{ matrix.build_configuration }}\BracketsCheck.dll

- uses: olegtarasov/get-tag@v2.1.2
id: tagName

- name: Release for ${{ matrix.build_platform }}
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && matrix.build_platform == 'x64'
with:
files: BracketsCheck-${{ steps.tagName.outputs.tag }}-x64

- name: Release for ${{ matrix.build_platform }}
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') && matrix.build_platform == 'Any CPU'
with:
files: BracketsCheck-${{ steps.tagName.outputs.tag }}-x86

4 changes: 3 additions & 1 deletion BracketsCheck/BracketsCheck.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<RootNamespace>BracketsCheck</RootNamespace>
<AssemblyName>BracketsCheck</AssemblyName>
<OutputPath>bin\Debug\</OutputPath>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8.1</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
Expand Down Expand Up @@ -48,6 +48,7 @@
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisIgnoreGeneratedCode>false</CodeAnalysisIgnoreGeneratedCode>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
Expand All @@ -57,6 +58,7 @@
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<DebugSymbols>true</DebugSymbols>
Expand Down
7 changes: 6 additions & 1 deletion BracketsCheck/DllExport/NppPlugin.DllExport.targets
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
<Target Name="AfterBuild"
DependsOnTargets="GetFrameworkPaths"
>
<PropertyGroup>
<!-- LibToolPath is optional - it's needed to debug C++, but you can still debug the C# code without it
If you don't have the C++ toolchain installed this is missing, but then you can't' debug C++ anyway -->
<LibToolPath Condition="Exists('$(DevEnvDir)\..\..\VC\bin')">$(DevEnvDir)\..\..\VC\bin</LibToolPath>
</PropertyGroup>
<DllExportTask Platform="$(Platform)"
PlatformTarget="$(PlatformTarget)"
CpuType="$(CpuType)"
Expand All @@ -17,7 +22,7 @@
ProjectDirectory="$(MSBuildProjectDirectory)"
InputFileName="$(TargetPath)"
FrameworkPath="$(TargetedFrameworkDir);$(TargetFrameworkDirectory)"
LibToolPath="$(DevEnvDir)\..\..\VC\bin"
LibToolPath="$(LibToolPath)"
LibToolDllPath="$(DevEnvDir)"
SdkPath="$(SDK40ToolsPath)"/>
</Target>
Expand Down
4 changes: 2 additions & 2 deletions BracketsCheck/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.2.2")]
[assembly: AssemblyFileVersion("1.2.2.0")]
[assembly: AssemblyVersion("1.2.3")]
[assembly: AssemblyFileVersion("1.2.3.0")]
Binary file removed BracketsCheck/bin/Release/BracketsCheck.dll
Binary file not shown.
Binary file removed BracketsCheck/bin/Release/BracketsCheck.zip
Binary file not shown.
54 changes: 30 additions & 24 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: 1.0.{build}
image: Visual Studio 2015
version: 1.2.3.{build}
image: Visual Studio 2022


platform:
Expand All @@ -8,48 +8,54 @@ platform:
- x64

configuration:
- Debug
- Release
- Debug

install:
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat"
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="x64" set platform_input=x64

- if "%platform%"=="x86" set archi=x86
- if "%platform%"=="x86" set platform_input=x86

build:
parallel: true # enable MSBuild parallel builds
verbosity: minimal
- if "%platform%"=="AnyCPU" set archi=x86
- if "%platform%"=="AnyCPU" set platform_input=AnyCPU


- call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%

build_script:
- cd "%APPVEYOR_BUILD_FOLDER%\BracketsCheck"
- msbuild BracketsCheck.csproj /m /p:configuration="%configuration%" /p:platform="%platform%"
- msbuild BracketsCheck.csproj /m /p:configuration="%configuration%" /p:platform="%platform_input%"

after_build:
- cd "%APPVEYOR_BUILD_FOLDER%\BracketsCheck"
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: >-

if ($env:PLATFORM -eq "x64") {
Push-AppveyorArtifact "bin\$($env:PLATFORM)\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
if ($env:PLATFORM_INPUT -eq "x64") {
Push-AppveyorArtifact "BracketsCheck\bin\$($env:PLATFORM_INPUT)\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
}

if ($env:PLATFORM -eq "x86" ) {
Push-AppveyorArtifact "bin\$($env:PLATFORM)\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
if ($env:PLATFORM_INPUT -eq "x86" ) {
Push-AppveyorArtifact "BracketsCheck\bin\$($env:PLATFORM_INPUT)\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
}

if ($env:PLATFORM -eq "AnyCPU" ) {
Push-AppveyorArtifact "bin\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
if ($env:PLATFORM_INPUT -eq "AnyCPU" ) {
Push-AppveyorArtifact "BracketsCheck\bin\$($env:CONFIGURATION)\BracketsCheck.dll" -FileName BracketsCheck.dll
}

if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release") {
if($env:PLATFORM -eq "x64"){
$ZipFileName = "NppHash_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $ZipFileName bin\$env:PLATFORM\$env:CONFIGURATION\BracketsCheck.dll
if($env:PLATFORM_INPUT -eq "x64"){
$ZipFileName = "BracketsCheck_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\BracketsCheck\bin\$env:PLATFORM_INPUT\$env:CONFIGURATION\BracketsCheck.dll"
}
if($env:PLATFORM -eq "x86"){
$ZipFileName = "NppHash_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName bin\$env:PLATFORM\$env:CONFIGURATION\BracketsCheck.dll
if($env:PLATFORM_INPUT -eq "x86"){
$ZipFileName = "BracketsCheck_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\BracketsCheck\bin\$env:PLATFORM_INPUT\$env:CONFIGURATION\BracketsCheck.dll"
}
if($env:PLATFORM -eq "AnyCPU"){
$ZipFileName = "NppHash_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName bin\$env:CONFIGURATION\BracketsCheck.dll
if($env:PLATFORM_INPUT -eq "AnyCPU"){
$ZipFileName = "BracketsCheck_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName "$($env:APPVEYOR_BUILD_FOLDER)\BracketsCheck\bin\$env:CONFIGURATION\BracketsCheck.dll"
}
}

Expand Down