diff options
| author | Yang You(UU) <[email protected]> | 2026-06-15 15:43:49 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-15 15:43:49 -0700 |
| commit | 52f73736b407acb1f8a0af513c9614a5354cea5b (patch) | |
| tree | 7af73a234b3500645d37a57935f62d5a1f4c6b0e /.github/workflows/Code-Scanning.yml | |
| parent | 5426a647c3f86885e4b9d8679d4a4c108933b5ee (diff) | |
| parent | e99ae832b48b245404f9bd750af4864247b061e8 (diff) | |
Merge branch 'microsoft:main' into WifiihvsampleDataPath
Diffstat (limited to '.github/workflows/Code-Scanning.yml')
| -rw-r--r-- | .github/workflows/Code-Scanning.yml | 73 |
1 files changed, 45 insertions, 28 deletions
diff --git a/.github/workflows/Code-Scanning.yml b/.github/workflows/Code-Scanning.yml index c3094b4b..06346d21 100644 --- a/.github/workflows/Code-Scanning.yml +++ b/.github/workflows/Code-Scanning.yml @@ -8,11 +8,17 @@ on: branches: - main - develop + paths-ignore: + - '**.md' + - 'LICENSE' pull_request: # The branches below must be a subset of the branches above branches: - main - develop + paths-ignore: + - '**.md' + - 'LICENSE' # Allow manual scheduling workflow_dispatch: @@ -20,7 +26,7 @@ on: jobs: analyze: name: Analysis - runs-on: windows-latest + runs-on: windows-2025-vs2026 permissions: actions: read contents: read @@ -29,32 +35,43 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'cpp' ] + include: + - language: c-cpp + build-mode: manual steps: - - name: Checkout repository - uses: actions/checkout@v3 - with: - submodules: 'recursive' - - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - - - name: Add MSBuild to PATH - uses: microsoft/[email protected] - - - name: Retrieve and build all available solutions - id: build-all-samples - 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@v2 - with: - category: "/language:${{matrix.language}}" + - name: Checkout repository + uses: actions/checkout@v4 + with: + 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@v46 + 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 + - 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-Samples.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: + category: "/language:${{matrix.language}}" |
