-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (88 loc) · 3.64 KB
/
ci.yml
File metadata and controls
106 lines (88 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: Build driver solution
on:
push:
jobs:
build-argb-driver:
strategy:
matrix:
configuration: [Debug, Release]
platform: [x64]
runs-on: windows-2022
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
- name: Restore dependencies
run: nuget restore FrameworkArgb\FrameworkArgb.sln
- name: Build solution
run: |
msbuild FrameworkArgb\FrameworkArgb.sln /property:Configuration=${{ env.Configuration }} /property:Platform=${{ env.Platform }}
env:
Configuration: ${{ matrix.configuration }}
Platform: ${{ matrix.platform }}
# Need to EV sign and replace existing signatures
# java -jar ~/Downloads/jsign-7.1.jar --replace --storetype PIV --storepass ****** --tsaurl http://ts.ssl.com --tsmode RFC3161 \
# FrameworkArgb.dll
# java -jar ~/Downloads/jsign-7.1.jar --replace --storetype PIV --storepass ****** --tsaurl http://ts.ssl.com --tsmode RFC3161 \
# frameworkargb.cat
- name: Create bundle
run: |
mkdir bundle
cp FrameworkArgb\install\devcon.exe bundle\
cp FrameworkArgb\install\install_argb_driver.bat bundle\
cp FrameworkArgb\x64\${{ matrix.configuration }}\FrameworkArgb\frameworkargb.cat bundle\
cp FrameworkArgb\x64\${{ matrix.configuration }}\FrameworkArgb\FrameworkArgb.dll bundle\
cp FrameworkArgb\x64\${{ matrix.configuration }}\FrameworkArgb\FrameworkArgb.inf bundle\
cp FrameworkArgb\x64\${{ matrix.configuration }}\FrameworkArgb.pdb bundle\
cp FrameworkArgb\x64\${{ matrix.configuration }}\Installer.exe bundle\
cp FrameworkArgb\x64\${{ matrix.configuration }}\Installer.pdb bundle\
- name: Upload bundle
uses: actions/upload-artifact@v4
with:
name: framework_win_argb_${{ matrix.configuration }}
path: bundle
codeql:
runs-on: windows-2022
permissions:
security-events: write
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: cpp
# Pin CodeQL CLI version for WHCP Windows 11 25H2 certification
# See: https://learn.microsoft.com/en-us/windows-hardware/drivers/devtest/static-tools-and-codeql
tools: https://github.com/github/codeql-action/releases/download/codeql-bundle-v2.20.1/codeql-bundle-win64.tar.gz
config-file: .github/codeql/codeql-config.yml
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
- name: Restore dependencies
run: nuget restore FrameworkArgb\FrameworkArgb.sln
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build solution
run: |
msbuild FrameworkArgb\FrameworkArgb.sln /property:Configuration=Release /property:Platform=x64
- name: Perform CodeQL analysis
uses: github/codeql-action/analyze@v4
with:
output: sarif-results
- name: Upload SARIF file
uses: actions/upload-artifact@v4
with:
name: codeql-sarif
path: sarif-results
- name: Generate DVL
shell: cmd
run: |
"C:\Program Files (x86)\Windows Kits\10\Tools\dvl\dvl.exe" /manualCreate FrameworkArgb X64 /sarifPath sarif-results
- name: Upload DVL
uses: actions/upload-artifact@v4
with:
name: dvl
path: sarif-results/FrameworkArgb.DVL.XML