|
1 |
| -# Copyright (c) Microsoft Corporation. |
2 |
| -# Licensed under the MIT License. |
3 |
| -# |
4 |
| -# http://go.microsoft.com/fwlink/?LinkId=248926 |
5 |
| - |
6 |
| -name: Microsoft C++ Code Analysis |
7 |
| - |
8 |
| -on: |
9 |
| - push: |
10 |
| - branches: "main" |
11 |
| - paths-ignore: |
12 |
| - - '*.md' |
13 |
| - - LICENSE |
14 |
| - - '.azuredevops/**' |
15 |
| - - '.nuget/*' |
16 |
| - - build/*.cmd |
17 |
| - - build/*.json |
18 |
| - - build/*.props |
19 |
| - - build/*.ps1 |
20 |
| - - build/*.targets |
21 |
| - - build/*.xvd |
22 |
| - pull_request: |
23 |
| - branches: "main" |
24 |
| - paths-ignore: |
25 |
| - - '*.md' |
26 |
| - - LICENSE |
27 |
| - - '.azuredevops/**' |
28 |
| - - '.nuget/*' |
29 |
| - - build/*.cmd |
30 |
| - - build/*.json |
31 |
| - - build/*.props |
32 |
| - - build/*.ps1 |
33 |
| - - build/*.targets |
34 |
| - - build/*.xvd |
35 |
| - schedule: |
36 |
| - - cron: '41 16 * * 1' |
37 |
| - |
38 |
| -permissions: |
39 |
| - contents: read |
40 |
| - |
41 |
| -jobs: |
42 |
| - analyze: |
43 |
| - permissions: |
44 |
| - contents: read |
45 |
| - security-events: write |
46 |
| - actions: read |
47 |
| - name: Analyze |
48 |
| - runs-on: windows-latest |
49 |
| - |
50 |
| - steps: |
51 |
| - - name: Checkout repository |
52 |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
53 |
| - |
54 |
| - - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
55 |
| - with: |
56 |
| - arch: amd64 |
57 |
| - |
58 |
| - - name: Configure CMake |
59 |
| - working-directory: ${{ github.workspace }} |
60 |
| - run: cmake -B out -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON |
61 |
| - |
62 |
| - - name: 'Build Shaders (BC)' |
63 |
| - shell: cmd |
64 |
| - working-directory: ./DirectXTex/Shaders |
65 |
| - run: CompileShaders.cmd |
66 |
| - env: |
67 |
| - CompileShadersOutput: ${{ github.workspace }}/out/Shaders/Compiled |
68 |
| - |
69 |
| - - name: 'Build Shaders (DDSVIEW)' |
70 |
| - shell: cmd |
71 |
| - working-directory: ./DDSView |
72 |
| - run: hlsl.cmd |
73 |
| - env: |
74 |
| - CompileShadersOutput: ${{ github.workspace }}/out/Shaders/Compiled |
75 |
| - |
76 |
| - - name: Initialize MSVC Code Analysis |
77 |
| - uses: microsoft/msvc-code-analysis-action@24c285ab36952c9e9182f4b78dfafbac38a7e5ee # v0.1.1 |
78 |
| - id: run-analysis |
79 |
| - with: |
80 |
| - cmakeBuildDirectory: ./out |
81 |
| - buildConfiguration: Debug |
82 |
| - ruleset: NativeRecommendedRules.ruleset |
83 |
| - |
84 |
| - # Upload SARIF file to GitHub Code Scanning Alerts |
85 |
| - - name: Upload SARIF to GitHub |
86 |
| - uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16 |
87 |
| - with: |
88 |
| - sarif_file: ${{ steps.run-analysis.outputs.sarif }} |
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkId=248926 |
| 5 | + |
| 6 | +name: Microsoft C++ Code Analysis |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: "main" |
| 11 | + paths-ignore: |
| 12 | + - '*.md' |
| 13 | + - LICENSE |
| 14 | + - '.azuredevops/**' |
| 15 | + - '.nuget/*' |
| 16 | + - build/*.cmd |
| 17 | + - build/*.json |
| 18 | + - build/*.props |
| 19 | + - build/*.ps1 |
| 20 | + - build/*.targets |
| 21 | + - build/*.xvd |
| 22 | + pull_request: |
| 23 | + branches: "main" |
| 24 | + paths-ignore: |
| 25 | + - '*.md' |
| 26 | + - LICENSE |
| 27 | + - '.azuredevops/**' |
| 28 | + - '.nuget/*' |
| 29 | + - build/*.cmd |
| 30 | + - build/*.json |
| 31 | + - build/*.props |
| 32 | + - build/*.ps1 |
| 33 | + - build/*.targets |
| 34 | + - build/*.xvd |
| 35 | + schedule: |
| 36 | + - cron: '41 16 * * 1' |
| 37 | + |
| 38 | +permissions: |
| 39 | + contents: read |
| 40 | + |
| 41 | +jobs: |
| 42 | + analyze: |
| 43 | + permissions: |
| 44 | + contents: read |
| 45 | + security-events: write |
| 46 | + actions: read |
| 47 | + name: Analyze |
| 48 | + runs-on: windows-latest |
| 49 | + |
| 50 | + steps: |
| 51 | + - name: Checkout repository |
| 52 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 53 | + |
| 54 | + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
| 55 | + with: |
| 56 | + arch: amd64 |
| 57 | + |
| 58 | + - name: Configure CMake |
| 59 | + working-directory: ${{ github.workspace }} |
| 60 | + run: cmake -B out -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON |
| 61 | + |
| 62 | + - name: 'Build Shaders (BC)' |
| 63 | + shell: cmd |
| 64 | + working-directory: ./DirectXTex/Shaders |
| 65 | + run: CompileShaders.cmd |
| 66 | + env: |
| 67 | + CompileShadersOutput: ${{ github.workspace }}/out/Shaders/Compiled |
| 68 | + |
| 69 | + - name: 'Build Shaders (DDSVIEW)' |
| 70 | + shell: cmd |
| 71 | + working-directory: ./DDSView |
| 72 | + run: hlsl.cmd |
| 73 | + env: |
| 74 | + CompileShadersOutput: ${{ github.workspace }}/out/Shaders/Compiled |
| 75 | + |
| 76 | + - name: Initialize MSVC Code Analysis |
| 77 | + uses: microsoft/msvc-code-analysis-action@24c285ab36952c9e9182f4b78dfafbac38a7e5ee # v0.1.1 |
| 78 | + id: run-analysis |
| 79 | + with: |
| 80 | + cmakeBuildDirectory: ./out |
| 81 | + buildConfiguration: Debug |
| 82 | + ruleset: NativeRecommendedRules.ruleset |
| 83 | + |
| 84 | + # Upload SARIF file to GitHub Code Scanning Alerts |
| 85 | + - name: Upload SARIF to GitHub |
| 86 | + uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18 |
| 87 | + with: |
| 88 | + sarif_file: ${{ steps.run-analysis.outputs.sarif }} |
0 commit comments