| 1 |
name: coverity-windows |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [ '**' ] |
| 6 |
pull_request: |
| 7 |
branches: [ '**' ] |
| 8 |
|
| 9 |
permissions: |
| 10 |
contents: read |
| 11 |
|
| 12 |
jobs: |
| 13 |
build: |
| 14 |
|
| 15 |
runs-on: ci-kw-windows |
| 16 |
if: ${{ github.repository != 'intel/pcm' }} |
| 17 |
|
| 18 |
steps: |
| 19 |
- name: Harden Runner |
| 20 |
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 |
| 21 |
with: |
| 22 |
egress-policy: audit |
| 23 |
|
| 24 |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 |
| 25 |
with: |
| 26 |
submodules: recursive |
| 27 |
|
| 28 |
- name: Add MSBuild to PATH |
| 29 |
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0 |
| 30 |
|
| 31 |
- name: coverity-windows |
| 32 |
run: | |
| 33 |
mkdir build |
| 34 |
cd build |
| 35 |
cmake .. |
| 36 |
c:\pcm\ci-cov-windows.ps1 |
| 37 |
|
| 38 |
- name: coverity-windows-cs |
| 39 |
run: | |
| 40 |
mkdir build-cs |
| 41 |
cd build-cs |
| 42 |
cmake .. |
| 43 |
c:\pcm\ci-cov-windows-cs.ps1 |
| 44 |
|
| 45 |
- name: coverity-windows-msr |
| 46 |
run: | |
| 47 |
chdir ${{github.workspace}}\src\WinMSRDriver |
| 48 |
c:\pcm\ci-cov-windows-msr.ps1 |