|
1 | 1 | name: Virtual Audio Driver Build and Sign |
2 | 2 | on: |
3 | 3 | workflow_dispatch: |
4 | | - push: |
5 | | - branches: |
6 | | - - master |
7 | | - pull_request: |
8 | | - branches: |
9 | | - - master |
10 | 4 | jobs: |
11 | 5 | build-and-sign: |
12 | 6 | runs-on: windows-latest |
13 | 7 | strategy: |
14 | 8 | matrix: |
15 | 9 | configuration: [Release] |
16 | | - platform: [x64, ARM64] |
| 10 | + platform: [x64] |
17 | 11 | steps: |
18 | 12 | - name: Checkout code |
19 | 13 | uses: actions/checkout@v3 |
|
38 | 32 | choco install windowsdriverkit11 -y |
39 | 33 | if ($LASTEXITCODE -ne 0 -and $LASTEXITCODE -ne 3010) { exit 1 } |
40 | 34 | |
41 | | - # Fix the WDK paths for InfVerif if needed - only for x64 builds |
| 35 | + # Fix the WDK paths for InfVerif |
42 | 36 | - name: Fix WDK paths for InfVerif |
43 | | - if: matrix.platform == 'x64' |
44 | 37 | run: | |
45 | 38 | # Find where infverif.dll actually exists in the WDK installation |
46 | 39 | Write-Host "Searching for infverif.dll..." |
@@ -106,17 +99,10 @@ jobs: |
106 | 99 | |
107 | 100 | # Build x64 with proper catalog generation |
108 | 101 | - name: Build driver (x64) |
109 | | - if: matrix.platform == 'x64' |
110 | 102 | run: | |
111 | 103 | cd "Virtual-Audio-Driver (Latest Stable)" |
112 | 104 | msbuild "VirtualAudioDriver.sln" /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} /p:SignMode=Off /p:EnableInf2Cat=true |
113 | 105 | |
114 | | - # Build ARM64 with limited validation but proper catalog generation |
115 | | - - name: Build driver (ARM64) |
116 | | - if: matrix.platform == 'ARM64' |
117 | | - run: | |
118 | | - cd "Virtual-Audio-Driver (Latest Stable)" |
119 | | - msbuild "VirtualAudioDriver.sln" /p:Configuration=${{ matrix.configuration }} /p:Platform=ARM64 /p:RunCodeAnalysis=false /p:DriverTargetPlatform=Universal /p:UseInfVerifierEx=false /p:ValidateDrivers=false /p:StampInf=false /p:ApiValidator_Enable=false /p:InfVerif_Enable=false /p:DisableVerification=true /p:SignMode=Off /p:ApiValidator_ExcludedTargets=ARM64 /p:EnableInf2Cat=true |
120 | 106 |
|
121 | 107 | # Generate catalog file using inf2cat |
122 | 108 | - name: Generate Catalog File |
@@ -147,46 +133,14 @@ jobs: |
147 | 133 | |
148 | 134 | if ($inf2catPath -and (Test-Path $infFile)) { |
149 | 135 | Write-Host "Found inf2cat at: $inf2catPath" |
150 | | - $osParam = if ("${{ matrix.platform }}" -eq "ARM64") { "10_22000_ARM64,ServerNext_ARM64,11_23H2_ARM64" } else { "10_X64,10_16299_X64,10_17134_X64,10_17763_X64,10_18362_X64,10_19041_X64,10_22000_X64" } |
| 136 | + $osParam = "10_X64,10_16299_X64,10_17134_X64,10_17763_X64,10_18362_X64,10_19041_X64,10_22000_X64" |
151 | 137 | & $inf2catPath /driver:"$packageDir" /os:$osParam /verbose |
152 | 138 | Write-Host "Catalog generation completed" |
153 | 139 | } else { |
154 | 140 | Write-Host "WARNING: inf2cat.exe not found or INF file missing" |
155 | 141 | } |
156 | 142 | |
157 | | - # Additional package preparation steps |
158 | | - - name: Complete Package Preparation |
159 | | - run: | |
160 | | - $packageDir = "Virtual-Audio-Driver (Latest Stable)\${{ matrix.platform }}\${{ matrix.configuration }}\package" |
161 | | - |
162 | | - # Ensure package directory has all required files |
163 | | - $sourceDir = "Virtual-Audio-Driver (Latest Stable)\Source\Main\${{ matrix.platform }}\${{ matrix.configuration }}" |
164 | | - |
165 | | - # Copy SYS file if it exists |
166 | | - if (Test-Path "$sourceDir\VirtualAudioDriver.sys") { |
167 | | - Copy-Item "$sourceDir\VirtualAudioDriver.sys" "$packageDir\" -Force |
168 | | - Write-Host "Copied VirtualAudioDriver.sys to package directory" |
169 | | - } |
170 | | - |
171 | | - # Copy INF file if it exists, or from x64 build |
172 | | - $infSource = "$sourceDir\VirtualAudioDriver.inf" |
173 | | - $x64InfSource = "Virtual-Audio-Driver (Latest Stable)\Source\Main\x64\${{ matrix.configuration }}\VirtualAudioDriver.inf" |
174 | | - |
175 | | - if (Test-Path $infSource) { |
176 | | - Copy-Item $infSource "$packageDir\" -Force |
177 | | - Write-Host "Copied VirtualAudioDriver.inf from ${{ matrix.platform }} build" |
178 | | - } elseif (Test-Path $x64InfSource) { |
179 | | - Copy-Item $x64InfSource "$packageDir\" -Force |
180 | | - Write-Host "Copied VirtualAudioDriver.inf from x64 build" |
181 | | - } |
182 | | - |
183 | | - # Check if catalog file was generated, create placeholder if not |
184 | | - if (-not (Test-Path "$packageDir\virtualaudiodriver.cat")) { |
185 | | - Write-Host "WARNING: Catalog file not generated, creating placeholder" |
186 | | - [System.IO.File]::WriteAllBytes("$packageDir\virtualaudiodriver.cat", [byte[]]@(0x00)) |
187 | | - } else { |
188 | | - Write-Host "Catalog file exists: $packageDir\virtualaudiodriver.cat" |
189 | | - } |
| 143 | + |
190 | 144 |
|
191 | 145 | - name: List build directory |
192 | 146 | run: | |
|
0 commit comments