|
1 |
| -# Copyright (c) Microsoft Corporation. |
2 |
| -# Licensed under the MIT License. |
3 |
| -# |
4 |
| -# http://go.microsoft.com/fwlink/?LinkID=615560 |
5 |
| - |
6 |
| -name: "CodeQL" |
7 |
| - |
8 |
| -on: |
9 |
| - push: |
10 |
| - branches: "main" |
11 |
| - paths-ignore: |
12 |
| - - '*.md' |
13 |
| - - LICENSE |
14 |
| - - '.azuredevops/**' |
15 |
| - - '.nuget/*' |
16 |
| - - build/*.ps1 |
17 |
| - pull_request: |
18 |
| - branches: "main" |
19 |
| - paths-ignore: |
20 |
| - - '*.md' |
21 |
| - - LICENSE |
22 |
| - - '.azuredevops/**' |
23 |
| - - '.nuget/*' |
24 |
| - - build/*.ps1 |
25 |
| - schedule: |
26 |
| - - cron: '34 18 * * 6' |
27 |
| - |
28 |
| -permissions: |
29 |
| - contents: read |
30 |
| - |
31 |
| -jobs: |
32 |
| - analyze: |
33 |
| - name: Analyze (C/C++) |
34 |
| - runs-on: windows-latest |
35 |
| - timeout-minutes: 360 |
36 |
| - permissions: |
37 |
| - actions: read # for github/codeql-action/init to get workflow details |
38 |
| - contents: read # for actions/checkout to fetch code |
39 |
| - security-events: write # for github/codeql-action/autobuild to send a status report |
40 |
| - packages: read |
41 |
| - |
42 |
| - steps: |
43 |
| - - name: Checkout repository |
44 |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
45 |
| - |
46 |
| - - name: Clone test repository |
47 |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
48 |
| - with: |
49 |
| - repository: walbourn/directxmathtest |
50 |
| - path: Tests |
51 |
| - ref: main |
52 |
| - |
53 |
| - - name: 'Install Ninja' |
54 |
| - run: choco install ninja |
55 |
| - |
56 |
| - - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
57 |
| - |
58 |
| - - name: Initialize CodeQL |
59 |
| - uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16 |
60 |
| - with: |
61 |
| - languages: c-cpp |
62 |
| - build-mode: manual |
63 |
| - |
64 |
| - - name: 'Configure CMake' |
65 |
| - working-directory: ./Tests/headertest |
66 |
| - run: cmake --preset=x64-Debug |
67 |
| - |
68 |
| - - name: 'Build' |
69 |
| - working-directory: ./Tests/headertest |
70 |
| - run: cmake --build out/build/x64-Debug |
71 |
| - |
72 |
| - - name: Perform CodeQL Analysis |
73 |
| - uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16 |
74 |
| - with: |
75 |
| - category: "/language:c-cpp" |
| 1 | +# Copyright (c) Microsoft Corporation. |
| 2 | +# Licensed under the MIT License. |
| 3 | +# |
| 4 | +# http://go.microsoft.com/fwlink/?LinkID=615560 |
| 5 | + |
| 6 | +name: "CodeQL" |
| 7 | + |
| 8 | +on: |
| 9 | + push: |
| 10 | + branches: "main" |
| 11 | + paths-ignore: |
| 12 | + - '*.md' |
| 13 | + - LICENSE |
| 14 | + - '.azuredevops/**' |
| 15 | + - '.nuget/*' |
| 16 | + - build/*.ps1 |
| 17 | + pull_request: |
| 18 | + branches: "main" |
| 19 | + paths-ignore: |
| 20 | + - '*.md' |
| 21 | + - LICENSE |
| 22 | + - '.azuredevops/**' |
| 23 | + - '.nuget/*' |
| 24 | + - build/*.ps1 |
| 25 | + schedule: |
| 26 | + - cron: '34 18 * * 6' |
| 27 | + |
| 28 | +permissions: |
| 29 | + contents: read |
| 30 | + |
| 31 | +jobs: |
| 32 | + analyze: |
| 33 | + name: Analyze (C/C++) |
| 34 | + runs-on: windows-latest |
| 35 | + timeout-minutes: 360 |
| 36 | + permissions: |
| 37 | + actions: read # for github/codeql-action/init to get workflow details |
| 38 | + contents: read # for actions/checkout to fetch code |
| 39 | + security-events: write # for github/codeql-action/autobuild to send a status report |
| 40 | + packages: read |
| 41 | + |
| 42 | + steps: |
| 43 | + - name: Checkout repository |
| 44 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 45 | + |
| 46 | + - name: Clone test repository |
| 47 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 48 | + with: |
| 49 | + repository: walbourn/directxmathtest |
| 50 | + path: Tests |
| 51 | + ref: main |
| 52 | + |
| 53 | + - name: 'Install Ninja' |
| 54 | + run: choco install ninja |
| 55 | + |
| 56 | + - uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 |
| 57 | + |
| 58 | + - name: Initialize CodeQL |
| 59 | + uses: github/codeql-action/init@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19 |
| 60 | + with: |
| 61 | + languages: c-cpp |
| 62 | + build-mode: manual |
| 63 | + |
| 64 | + - name: 'Configure CMake' |
| 65 | + working-directory: ./Tests/headertest |
| 66 | + run: cmake --preset=x64-Debug |
| 67 | + |
| 68 | + - name: 'Build' |
| 69 | + working-directory: ./Tests/headertest |
| 70 | + run: cmake --build out/build/x64-Debug |
| 71 | + |
| 72 | + - name: Perform CodeQL Analysis |
| 73 | + uses: github/codeql-action/analyze@fca7ace96b7d713c7035871441bd52efbe39e27e # v3.28.19 |
| 74 | + with: |
| 75 | + category: "/language:c-cpp" |
0 commit comments