Skip to content

Commit 1dde891

Browse files
Worflows
1 parent c53bd3f commit 1dde891

3 files changed

Lines changed: 4 additions & 62 deletions

File tree

.github/workflows/VAD-compile-and-sign.yml

Lines changed: 4 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,13 @@
11
name: Virtual Audio Driver Build and Sign
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
104
jobs:
115
build-and-sign:
126
runs-on: windows-latest
137
strategy:
148
matrix:
159
configuration: [Release]
16-
platform: [x64, ARM64]
10+
platform: [x64]
1711
steps:
1812
- name: Checkout code
1913
uses: actions/checkout@v3
@@ -38,9 +32,8 @@ jobs:
3832
choco install windowsdriverkit11 -y
3933
if ($LASTEXITCODE -ne 0 -and $LASTEXITCODE -ne 3010) { exit 1 }
4034
41-
# Fix the WDK paths for InfVerif if needed - only for x64 builds
35+
# Fix the WDK paths for InfVerif
4236
- name: Fix WDK paths for InfVerif
43-
if: matrix.platform == 'x64'
4437
run: |
4538
# Find where infverif.dll actually exists in the WDK installation
4639
Write-Host "Searching for infverif.dll..."
@@ -106,17 +99,10 @@ jobs:
10699
107100
# Build x64 with proper catalog generation
108101
- name: Build driver (x64)
109-
if: matrix.platform == 'x64'
110102
run: |
111103
cd "Virtual-Audio-Driver (Latest Stable)"
112104
msbuild "VirtualAudioDriver.sln" /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} /p:SignMode=Off /p:EnableInf2Cat=true
113105
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
120106

121107
# Generate catalog file using inf2cat
122108
- name: Generate Catalog File
@@ -147,46 +133,14 @@ jobs:
147133
148134
if ($inf2catPath -and (Test-Path $infFile)) {
149135
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"
151137
& $inf2catPath /driver:"$packageDir" /os:$osParam /verbose
152138
Write-Host "Catalog generation completed"
153139
} else {
154140
Write-Host "WARNING: inf2cat.exe not found or INF file missing"
155141
}
156142
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+
190144

191145
- name: List build directory
192146
run: |

.github/workflows/VAD-compile.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: Virtual Audio Driver Building
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
104
jobs:
115
build:
126
runs-on: windows-latest

.github/workflows/compile.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
name: Virtual Display Driver Building
22
on:
33
workflow_dispatch:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
104
jobs:
115
build:
126
runs-on: windows-latest

0 commit comments

Comments
 (0)