Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-addin

# Conflicts:
#	CPPCheckPlugin/CPPCheckPluginPackage.cs
  • Loading branch information
VioletGiraffe committed Jul 30, 2020
2 parents f833fac + 997b9b2 commit e833e82
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
48 changes: 48 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# For more information on GitHub Actions, refer to https://github.com/features/actions
# For a complete CI/CD sample to get started with GitHub Action workflows for Desktop Applications,
# refer to https://github.com/microsoft/github-actions-for-desktop-apps

name: CI Build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:

build:

strategy:
matrix:
configuration: [Debug, Release]

runs-on: windows-latest # For a list of available runner types, refer to
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on

env:
Solution_Name: CPPCheckPlugin.sln # Replace with your solution name, i.e. MyWpfApp.sln.

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16

- name: Nuget
run: nuget restore

- name: Build the application
run: msbuild $env:Solution_Name /t:Build /p:Configuration=$env:Configuration
env:
Configuration: ${{ matrix.configuration }}

- uses: actions/upload-artifact@v2
with:
name: cppcheck-vs-addin
path: .\CPPCheckPlugin\bin\**\*.vsix
2 changes: 1 addition & 1 deletion CPPCheckPlugin/AnalyzerCppcheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private string getCPPCheckArgs(SourceFilesWithConfiguration configuredFiles, boo
{
foreach (SourceFile file in filesToAnalyze)
{
if (!matchMasksList(file.FileName, unitedSuppressionsInfo.SkippedFilesMask))
if (!matchMasksList(file.FilePath, unitedSuppressionsInfo.SkippedFilesMask))
tempFile.WriteLine(file.FilePath);
}
}
Expand Down

0 comments on commit e833e82

Please sign in to comment.