Skip to content

Commit

Permalink
Fix CodeQL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nirbar committed Mar 19, 2024
1 parent dc50e35 commit 07e0be3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,21 @@ jobs:
- uses: microsoft/setup-msbuild@v1

- name: Prepare for build
run: |
choco install windows-adk-all
nuget restore
run: choco install windows-adk-all

- name: Build without analysis
run: msbuild dirs.proj -restore
run: msbuild src/dirs.proj -restore

- name: Clean PanelSwWixExtension (keep extranal code build)
run: |
Remove-Item ("${{ github.workspace }}" + "\build") -Recurse -Force
nuget restore src/dirs.proj
run: Remove-Item ("${{ github.workspace }}" + "\build") -Recurse -Force

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}

- name: Build & scan
run: msbuild src/dirs.proj -restore -p:DisableNuget=true
run: msbuild src/dirs.proj -restore

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

0 comments on commit 07e0be3

Please sign in to comment.