Skip to content

Commit 956dfa2

Browse files
committed
Run CodeQL on GitHub Actions
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 2fe5a9a commit 956dfa2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,34 @@ jobs:
5454
with:
5555
name: framework_win_argb_${{ matrix.configuration }}
5656
path: bundle
57+
58+
codeql:
59+
runs-on: windows-2022
60+
permissions:
61+
security-events: write
62+
steps:
63+
- name: Check out repository code
64+
uses: actions/checkout@v4
65+
66+
- name: Initialize CodeQL
67+
uses: github/codeql-action/init@v4
68+
with:
69+
languages: cpp
70+
71+
- name: Setup NuGet
72+
uses: NuGet/setup-nuget@v2
73+
with:
74+
version: '6.x'
75+
76+
- name: Restore dependencies
77+
run: nuget restore FrameworkArgb\FrameworkArgb.sln
78+
79+
- name: Add MSBuild to PATH
80+
uses: microsoft/setup-msbuild@v2
81+
82+
- name: Build solution
83+
run: |
84+
msbuild FrameworkArgb\FrameworkArgb.sln /property:Configuration=Release /property:Platform=x64
85+
86+
- name: Perform CodeQL analysis
87+
uses: github/codeql-action/analyze@v4

0 commit comments

Comments
 (0)