diff options
| author | Jakob Lichtenberg <[email protected]> | 2025-04-01 17:04:36 -0700 |
|---|---|---|
| committer | Jakob Lichtenberg <[email protected]> | 2025-04-01 17:04:36 -0700 |
| commit | 38e10591ece2141ba2265d89a134bac25d88eca0 (patch) | |
| tree | 252d443a3a38dad0ecb9db09ce2490fb88f07f5f /.github/workflows/Code-Scanning.yml | |
| parent | fd2e0aaf97c2a31d1bcb608a96e68171e6308d69 (diff) | |
| parent | 377403a674ece9688631149a35adca7fe07d0115 (diff) | |
Merge branch 'main' into prahant/pc_loadletter_03012prahant/pc_loadletter_03012
Diffstat (limited to '.github/workflows/Code-Scanning.yml')
| -rw-r--r-- | .github/workflows/Code-Scanning.yml | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/.github/workflows/Code-Scanning.yml b/.github/workflows/Code-Scanning.yml index 72e9c32c..63e155c9 100644 --- a/.github/workflows/Code-Scanning.yml +++ b/.github/workflows/Code-Scanning.yml @@ -35,7 +35,9 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'cpp' ] + include: + - language: c-cpp + build-mode: manual steps: - name: Checkout repository @@ -44,20 +46,31 @@ jobs: submodules: 'recursive' - name: Install Nuget Packages run: nuget restore .\packages.config -PackagesDirectory .\packages\ - + - name: Get changed files + id: get-changed-files + uses: tj-actions/changed-files@v41 + with: + separator: "," - name: Initialize CodeQL uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} config-file: microsoft/Windows-Driver-Developer-Supplemental-Tools/config/codeql-config.yml@development - packs: +microsoft/[email protected] - - name: Retrieve and build all available solutions + - if: github.event_name == 'pull_request' + run: | + $changedFiles = "${{ steps.get-changed-files.outputs.all_changed_files }}".Split(',') + .\.github\scripts\Build-ChangedSamples.ps1 -ChangedFiles $changedFiles -Verbose + env: + WDS_Configuration: Debug + WDS_Platform: x64 + WDS_WipeOutputs: ${{ true }} + - if: github.event_name == 'push' run: .\Build-AllSamples.ps1 -Verbose -ThrottleLimit 1 env: WDS_Configuration: Debug WDS_Platform: x64 WDS_WipeOutputs: ${{ true }} - - name: Perform CodeQL analysis uses: github/codeql-action/analyze@v3 with: |
